I'm really confused about what "go get -d" is supposed to do.
The -d flag instructs get to stop after downloading the packages; that is, it instructs get not to install the packages.
The first time I call "go get -d", I get an error about no buildable Go source files; however, once those files have already been downloaded, the next call to "go get -d" succeeds. I'm not sure if this is a bug in "go get" or if the documentation is incorrect or if I am simply misunderstanding something. My expectation was that the first call to "go get -d" would have downloaded the package and would not complain about the lack of buildable Go source files, because it was not supposed to install the packages.
For context, our CI system calls "go get -d" with this particular project, and this means that the first build from a clean workspace will always fail because "go get -d" exits with code 1.
Can anyone help clear the air?
Here's the output showing specifically the issue I have:
vagrant@packer-virtualbox-iso:/tmp/go$ go version
go version go1.2 linux/amd64