blob: 71356e5321eb1ca3ab2b9227c55ceba8eb4710d1 [file] [log] [blame]
# Check that deprecation warnings are printed when the -i flag is used.
# TODO( remove the -i flag after Go 1.16, and this test.
go build -n -i
stderr '^go build: -i flag is deprecated$'
go install -n -i
stderr '^go install: -i flag is deprecated$'
go test -n -i
stderr '^go test: -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