]> Cypherpunks repositories - gostls13.git/commit
cmd/go/internal/cache: disable builds if GOCACHE is not an absolute path
authorBaokun Lee <nototon@gmail.com>
Thu, 28 Feb 2019 08:40:11 +0000 (16:40 +0800)
committerBryan C. Mills <bcmills@google.com>
Fri, 1 Mar 2019 02:23:02 +0000 (02:23 +0000)
commit13d24b685a6d7b05a249f85be91c390f5595f745
tree8cde81666d655e0b484418b155389489fa551223
parentdb2b6e15667f9001bbd1ef133ce64328cd329166
cmd/go/internal/cache: disable builds if GOCACHE is not an absolute path

If GOCACHE is set but is not an absolute path, we cannot build.
And GOCACHE=off also returns the error message "build cache is
disabled by GOCACHE=off".

Fixes #30447

Change-Id: I24f64bc886599ca0acd757acada4714aebe4d3ae
Reviewed-on: https://go-review.googlesource.com/c/164200
Run-TryBot: Baokun Lee <nototon@gmail.com>
Run-TryBot: Bryan C. Mills <bcmills@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Bryan C. Mills <bcmills@google.com>
src/cmd/go/internal/cache/default.go
src/cmd/go/testdata/script/build_nocache.txt