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: GOCACHE=off doesn't work if the compiled binary is already there #25929
Please answer these questions before submitting your issue. Thanks!
What did you do?
If possible, provide a recipe for reproducing the error.
What did you expect to see?
The output of the step 3 is similar to the step 2 and the step 5.
What did you see instead?
GOCACHE=off doesn't force rebuilding.
Does this issue reproduce with the latest release (go1.10.3)?
I think so.
Maybe, this is an intended behavior. Even so, -x message can be improved.
This is completely working as intended. GOCACHE=off disables the use of the "build cache" but not the preinstalled artifacts in GOPATH/pkg nor the possibly-already-built target binary. GOCACHE=off does not mean "rebuild everything".
If you really want to just rebuild everything, use