Build errors
roger peppe
roger.peppe at canonical.com
Tue Feb 2 08:55:26 UTC 2016
On 2 February 2016 at 01:50, Michael Hudson-Doyle
<michael.hudson at canonical.com> wrote:
> I saw this error yesterday too. It seems that currently you have to run:
>
> $ go get -d -v github.com/juju/juju/...
> (let this error)
> $ godeps -u dependencies.tsv
> $ go get -d -v github.com/juju/juju/...
> (it will succeed now)
This is not unexpected. The problem is that there's no way
to tell go get to avoid downloading dependencies recursively.
It will therefore get all dependencies at their latest version,
but the packages required by the latest version
of juju might not be available at the latest version
of each dependency.
If you really want to avoid this error, another way
would be:
mkdir -p $GOPATH/src/github.com/juju/juju
git clone https://github.com/juju/juju.git $GOPATH/src/github.com/juju/juju
cd $GOPATH/src/github.com/juju/juju
godeps -u dependencies.tsv
That is: avoid go get entirely.
It would not be hard to add a "godeps get" command which did the
above for any given repo.
cheers,
rog.
PS It does seem questionable that juju packages are importing
packages vendored by other repositories, but that can be
unavoidable sometimes.
More information about the Juju-dev
mailing list