-
Notifications
You must be signed in to change notification settings - Fork 79
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
gotooltest: pass through GOPROXY (#48)
This can make tests that use the go command considerably faster. We override GOPROXY when we're running a local Go test proxy.
- Loading branch information
Showing
4 changed files
with
31 additions
and
15 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,10 @@ | ||
# with no .gomodproxy supporting files we should not have a GOPROXY set | ||
# With no .gomodproxy supporting files, we use the GOPROXY from | ||
# the environment. | ||
env GOPROXY=0.1.2.3 | ||
unquote file.txt | ||
testscript -v file.txt | ||
|
||
-- file.txt -- | ||
>go env | ||
>[!windows] stdout '^GOPROXY=""$' | ||
>[windows] stdout '^set GOPROXY=$' | ||
>[!windows] stdout '^GOPROXY="0.1.2.3"$' | ||
>[windows] stdout '^set GOPROXY=0.1.2.3$' |
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