Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
cmd/go: cache conflict with compiler experiment flags #26883
There seems to be cache conflict where the compiler experiment is not part of the hash.
Steps to reproduce (affects
# Download the Go toolchain. mkdir /tmp/cache-conflict export GOCACHE=/tmp/cache-conflict/cache # clean cache for reproduction purposes (cd /tmp/cache-conflict/ && curl -s -L https://dl.google.com/go/go1.10.3.src.tar.gz | tar -zxf -) # Build the Go toolchain normally and use that to build some random target. (cd /tmp/cache-conflict/go/src && ./make.bash) /tmp/cache-conflict/go/bin/go build -race archive/tar # Build the Go toolchain with fieldtracking support and use that to build the same target again. (cd /tmp/cache-conflict/go/src && GOEXPERIMENT=fieldtrack ./make.bash) /tmp/cache-conflict/go/bin/go build -race archive/tar
The last command fails with:
Clearing the cache with