cmd/go: go build mixing tags when running builds in parallel #23315
Labels
FrozenDueToAge
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Milestone
What version of Go are you using (
go version
)?1.9.2
What operating system and processor architecture are you using (
go env
)?I've been able to reproduce this on both my Mac and Linux.
What did you do?
What did you see instead?
When I run two "go build" processes in parallel, sometimes alfa (with alfa tag) will include charlie (with bravo tag). The opposite also happens: bravo (with bravo tag) with charlie (with alfa tag). I've constructed a minimal example to demonstrate this: https://github.com/xudongzheng/alfabravo. If you run loop.sh, it will build with parallel.sh 100 times.
Here it doesn't happen consistently but when building for a personal project, it happens on every other build (presumably because the package is larger, the build takes longer, and there is more time for the race to occur).
The text was updated successfully, but these errors were encountered: