]> Cypherpunks repositories - gostls13.git/commit
[release-branch.go1.12] cmd/go/internal/cache: disable builds if GOCACHE is not an...
authorBaokun Lee <nototon@gmail.com>
Thu, 28 Feb 2019 08:40:11 +0000 (16:40 +0800)
committerIan Lance Taylor <iant@golang.org>
Fri, 1 Mar 2019 05:09:48 +0000 (05:09 +0000)
commit162b3610e62f2e55e4048f2f72273a58e152236e
treef9d2650917b0cbfa7c491b1470ffa4b1c50fa6d6
parenta2884af3b6ebe64b884520cab7a7af85aa3b8e79
[release-branch.go1.12] 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 #30493

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>
(cherry picked from commit 13d24b685a6d7b05a249f85be91c390f5595f745)
Reviewed-on: https://go-review.googlesource.com/c/164717
Run-TryBot: Ian Lance Taylor <iant@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
src/cmd/go/internal/cache/default.go
src/cmd/go/testdata/script/build_nocache.txt