I have a system that posts my builds my blog and pushes it live whenever I make a change. On travis where the build happens it uses the latest version of hugo (it does a go get -v ) and today I noticed that I get “Failed to normalize URL string. Returning in = “2017-3-predictions-for-the-web-and-platforms.html”” for every markdown file, where as yesterday I didn’t get any issues.
My loacl version was 0.17. and I just upgraded it to 0.19 and I am having trouble working out the issues and if I can fix it, or if I should wait for master to update.
Out of curiosity, I tested your site – builds fine here.
Which means, I guess, that your installation method is faulty. We should update the docs about this, maybe, but doing any go get hugo cannot be “trusted” 100% anymore (you may get a too new version of a library) – Hugo now manages its dependencies.
Using go get -u -v github.com/spf13/hugo on my travis CI build with version v0.19-DEV fails with error ERROR 2017/01/07 01:57:34 Failed to normalize URL string. Returning in = “/”.
I met the same problem in travisCI building, following is my solution:
Modify the .travis.yml file:
From:
install:
- go get -u -v github.com/spf13/hugo
script:
- hugo
To
install:
- go get -u -v github.com/kardianos/govendor
- go get -u -v github.com/spf13/hugo
- cd $GOPATH/src/github.com/spf13/hugo && govendor sync && go install
script:
- cd $HOME/gopath/src/github.com/YourBlogName/YourBlogName.github.io && hugo
$ go get -d -t -u github.com/kardianos/govendor/...
$ go get -d -t -u github.com/spf13/hugo/...
$ go build -a -i github.com/kardianos/govendor/...
$ go install github.com/kardianos/govendor/...
$ cd $GOPATH/src/github.com/spf13/hugo
$ git status
On branch master
Your branch is up-to-date with 'origin/master'.
nothing to commit, working directory clean
$ govendor sync
$ git diff