Go get -v -u errors on fast-forward of coreos/etcd

I’m trying to refresh Hugo from source and getting an error. Am I misusing the command line?

$ go get -v -u
github.com/spf13/hugo (download)
bitbucket.org/kardianos/osext (download)
package github.com/spf13/hugo
	imports bitbucket.org/kardianos/osext
	imports bitbucket.org/kardianos/osext
	imports bitbucket.org/kardianos/osext: code in directory /Users/quoha/go/src/bitbucket.org/kardianos/osext expects import "github.com/kardianos/osext"
bitbucket.org/pkg/inflect (download)
github.com/BurntSushi/toml (download)
github.com/PuerkitoBio/purell (download)
github.com/opennota/urlesc (download)
github.com/armon/consul-api (download)
github.com/coreos/etcd (download)
# cd /Users/quoha/go/src/github.com/coreos/etcd; git pull --ff-only
From https://github.com/coreos/etcd
   4d04720..4b72095  master     -> origin/master
   676ba5b..8dad14a  210        -> origin/210
fatal: Not possible to fast-forward, aborting.
package github.com/spf13/hugo
	imports bitbucket.org/kardianos/osext
	imports bitbucket.org/pkg/inflect
	imports github.com/BurntSushi/toml
	imports github.com/PuerkitoBio/purell
	imports github.com/opennota/urlesc
	imports github.com/armon/consul-api
	imports github.com/coreos/etcd/etcdserver/etcdhttp/httptypes: exit status 128

Bitbucket is partly down (and the clever Go import system seem to fail with the redirection) – but if you pull the latest Hugo and try again …

Pulled. Similar error. Deleted hugo from my Go tree and pulled again. Different error but same results. Should I just wait on bitbucket to come back?

$ go get -u -v github.com/spf13/hugo
github.com/spf13/hugo (download)
bitbucket.org/pkg/inflect (download)
github.com/BurntSushi/toml (download)
github.com/PuerkitoBio/purell (download)
github.com/opennota/urlesc (download)
github.com/armon/consul-api (download)
github.com/coreos/etcd (download)
# cd /Users/quoha/go/src/github.com/coreos/etcd; git pull --ff-only
From https://github.com/coreos/etcd
 * [new branch]      check-readloop-1 -> origin/check-readloop-1
 * [new branch]      check-readloop-10 -> origin/check-readloop-10
 * [new branch]      check-readloop-2 -> origin/check-readloop-2
 * [new branch]      check-readloop-3 -> origin/check-readloop-3
 * [new branch]      check-readloop-4 -> origin/check-readloop-4
 * [new branch]      check-readloop-5 -> origin/check-readloop-5
 * [new branch]      check-readloop-6 -> origin/check-readloop-6
 * [new branch]      check-readloop-7 -> origin/check-readloop-7
 * [new branch]      check-readloop-8 -> origin/check-readloop-8
 * [new branch]      check-readloop-9 -> origin/check-readloop-9
fatal: Not possible to fast-forward, aborting.
package github.com/spf13/hugo
	imports bitbucket.org/pkg/inflect
	imports github.com/BurntSushi/toml
	imports github.com/PuerkitoBio/purell
	imports github.com/opennota/urlesc
	imports github.com/armon/consul-api
	imports github.com/coreos/etcd/etcdserver/etcdhttp/httptypes: exit status 128

Your error suggests something different, not sure what …

I would first try to

rm -r /Users/quoha/go/src/github.com/coreos/etcd

Then do the go get againg.

That gets me past that error. Still doesn’t compile hugo.

Purging my whole GOPATH tree and running again pulls the source but doesn’t compile. Am I misunderstand the command?

What’s the error now?

No errors. It just doesn’t build Hugo.

If I run go build after the go get -v -u, it does build.

I think that I hit the same issue. I made this test on a clean machine. After running the command go get -v github.com/spf13/hugo, the bin/ directory is not even created:

$ ls $GOPATH/
src

While the README suggest that the command above should also compile hugo.
I’m missing something?

Forget my last comment. I realized that mercurial was not installed on my system, so go get could not pull this package:

$ go install
hugolib/site.go:32:2: cannot find package "bitbucket.org/pkg/inflect" in any of:
    /usr/lib/golang/src/bitbucket.org/pkg/inflect (from $GOROOT)
    /home/fede/go/src/bitbucket.org/pkg/inflect (from $GOPATH)

Now I have it:

$ ./go/bin/hugo version
Hugo Static Site Generator v0.15-DEV BuildDate: 2015-11-09T19:05:13+01:00

Unfortunately, go get does not issue any warning about the fact that it could not fetch one of the dependencies. Or at least I didn’t see it at the end of the command output.

1 Like