Black Lives Matter. Support the Equal Justice Initiative.

Text file src/cmd/go/testdata/script/build_i_deprecate.txt

Documentation: cmd/go/testdata/script

     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 build: -i flag is deprecated$'
     6  
     7  go install -n -i
     8  stderr '^go install: -i flag is deprecated$'
     9  
    10  go test -n -i
    11  stderr '^go test: -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