-
Notifications
You must be signed in to change notification settings - Fork 78
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
gotooltest: proxy the new GOMODCACHE env var too
Added in 1.15, it's like GOCACHE but for the module download cache instead of the build cache. Also add a minimal test to check that the added env vars look like what we expect. A couple of other packages needed to be updated. txtar-addmod did not support GOMODCACHE yet, and a cmd/testscript test assumed that GOMODCACHE was always thrown away between test runs.
- Loading branch information
Showing
4 changed files
with
27 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
# GOPATH should point inside the temporary work directory, but GOCACHE and | ||
# GOMODCACHE should not, as they should reuse the host's. | ||
go env | ||
stdout GOPATH=.*${WORK@R} | ||
! stdout GOCACHE=.*${WORK@R} | ||
! stdout GOMODCACHE=.*${WORK@R} |