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: error if GOCACHE is set but is not an absolute path #30447
What version of Go are you using (
changed the title
cmd/go: go test build error in go 1.12 due to new cache directory structure
Feb 27, 2019
Thanks, I was wondering why the hell the tmp directory is named "on".
I have an explanation for this. The story goes that I had this settings on "off", but 1.12 didn't want to compile with GOCACHE="off". I try to delete it from .bash_profile but VSCode haven't picked up that change after several VSCode restarts, so I put it back and set it to "on". Compile started to work and I end up with "on/" directory for cache files
Now when I know for this issue, I don't mind if it will be relative or absolute path. The off value is history now, so I guess I will never use this env var ever again.
But for transition period like now when I upgraded from 1.11 to 1.12 and moved from "off" to "on"