github.com/gagliardetto/golang-go@v0.0.0-20201020153340-53909ea70814/cmd/go/testdata/script/mod_load_badzip.txt (about)

     1  # Zip files with unexpected file names inside should be rejected.
     2  env GO111MODULE=on
     3  
     4  ! go get -d rsc.io/badzip
     5  stderr 'zip for rsc.io/badzip@v1.0.0 has unexpected file rsc.io/badzip@v1.0.0.txt'
     6  ! grep rsc.io/badzip go.mod
     7  
     8  # TODO(golang.org/issue/31730): 'go build' should print the error below if the
     9  # requirement is not present.
    10  go mod edit -require rsc.io/badzip@v1.0.0
    11  ! go build rsc.io/badzip
    12  stderr 'zip for rsc.io/badzip@v1.0.0 has unexpected file rsc.io/badzip@v1.0.0.txt'
    13  
    14  -- go.mod --
    15  module m