cmd/go: build errors with relative GOMODCACHE #43715
Labels
FrozenDueToAge
GoCommand
cmd/go
NeedsFix
The path to resolution is known, but the work has not been done.
Milestone
What version of Go are you using (
go version
)?go version go1.15.6 darwin/amd64
Does this issue reproduce with the latest release?
yes
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
Use
GOMODCACHE
to speed up gitlab CICD.I write a demo project:
go.mod
main.go
go mod tidy
go build
GOMODCACHE=.cache go build .
What did you expect to see?
build success with GOMODCACHE.
What did you see instead?
build error:
The text was updated successfully, but these errors were encountered: