Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
cmd/go: install parallelism is broken #4105
Comments
Does this still happen for you? I believe the problem is that the wildcard x/... is including x/ (instead of x) as one of its expansions. Other things depend on juju/cmd and so the build ends up building both juju/cmd/ and juju/cmd, which end up stepping on each other. You can see the problem in the 'go list' output you gave, where the first line listed ends in a slash. However, I cannot reproduce this locally: go list hash/... lists 'hash' not 'hash/'. Perhaps another cleanup fixed this. |
niemeyer
added
fixed
labels
Jan 31, 2013
rsc
added this to the Go1.1 milestone
Apr 14, 2015
rsc
removed
the
go1.1
label
Apr 14, 2015
gopherbot
locked and limited conversation to collaborators
Jun 24, 2016
gopherbot
added
the
FrozenDueToAge
label
Jun 24, 2016
This issue was closed.
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
niemeyer commentedSep 19, 2012
This script: #!/bin/bash set -e while true; do date rm -rf $GOPATH/pkg/linux_amd64 GOMAXPROCS=1 go install -x -work launchpad.net/juju-core/cmd/... done Breaks down after a couple of tries with errors like: pack: non-object file $WORK/launchpad.net/juju-core/cmd/_obj/_go_.6 Preserving the working directory with -work or hacking the code to disable the mkdir cache do not fix the problem. Running it without parallelism with -p 1 makes it work reliably. The full log of such a broken build is attached.Attachments: