Skip to content

Commit e5043b1

Browse files
add test
/ Change-Id: Iee56fe799ceda0a9f650378537c3c195242788c6
1 parent f2f2534 commit e5043b1

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# Test query for non-defaults in the env
2+
3+
env GOTOOLCHAIN=local
4+
env GOSUMDB=nodefault
5+
env GOPROXY=nodefault
6+
env GO111MODULE=auto
7+
8+
go env -changed
9+
stdout 'GOTOOLCHAIN=local'
10+
stdout 'GOSUMDB=nodefault'
11+
stdout 'GOPROXY=nodefault'
12+
stdout 'GO111MODULE=auto'
13+
14+
go env -changed -json
15+
stdout '"GOTOOLCHAIN": "local"'
16+
stdout '"GOSUMDB": "nodefault"'
17+
stdout '"GOPROXY": "nodefault"'
18+
stdout '"GO111MODULE": "auto"'

0 commit comments

Comments
 (0)