aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/go/testdata/script/build_i_deprecate.txt
blob: 5c1799566999e44a76c4555af4e06cfd67b592fd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# Check that deprecation warnings are printed when the -i flag is used.
# TODO(golang.org/issue/41696): remove the -i flag after Go 1.16, and this test.

go build -n -i
stderr '^go: -i flag is deprecated$'

go install -n -i
stderr '^go: -i flag is deprecated$'

go test -n -i
stderr '^go: -i flag is deprecated$'


# 'go clean -i' should not print a deprecation warning.
# It will continue working.
go clean -i .
! stderr .

-- go.mod --
module m

go 1.16
-- m.go --
package m