DescriptionFix build error with Go 1.3
A change that landed in Go 1.3 was an additional restriction that you could not `go install` a package if there was no source to install. Prior to this the results of doing `go install launchpad.net/juju-core` were in consistent. If you did `go install launchpad.net/juju-core/...` then the base package would fail to build, but all the sub packages would build. In Go < 1.3 this was a warning. This failure is not an error and the whole `go install` command will return exit 1.
To fix this, as well as have a nice high level description that shows up in godoc.org, add a small file at the top level so it can be built (ie, a .a file is generated) which keeps the tool happy. It is worth noting that our hacked version of the Go 1.2 build tool for ppc64el also suffers from this limitation as it is a mash up of bits of Go 1.2 and Go 1.3's build tool.
nb. Why is there no source to install ? Because the only files in that directory end in _test.go; they are test source, not package source, and test source is never installed.
https://code.launchpad.net/~dave-cheney/juju-core/177-fix-build-error/+merge/220145
(do not edit description out of merge proposal)
Patch Set 1 #Patch Set 2 : Fix build error with Go 1.3 #MessagesTotal messages: 5
|