1 # Check that deprecation warnings are printed when the -i flag is used.
2 # TODO(golang.org/issue/41696): remove the -i flag after Go 1.16, and this test.
3
4 go build -n -i
5 stderr '^go: -i flag is deprecated$'
6
7 go install -n -i
8 stderr '^go: -i flag is deprecated$'
9
10 go test -n -i
11 stderr '^go: -i flag is deprecated$'
12
13
14 # 'go clean -i' should not print a deprecation warning.
15 # It will continue working.
16 go clean -i .
17 ! stderr .
18
19 -- go.mod --
20 module m
21
22 go 1.16
23 -- m.go --
24 package m
25
View as plain text