Go build touches ~/.cache which is undesirable.
How can I change the location of this directory?
The cache defaults to the operating system-defined user cache directory but can be moved by setting $GOCACHE.
Source: article from rsc