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

     1  # Zip files with unexpected file names inside should be rejected.
     2  env GO111MODULE=on
     3  
     4  ! go get 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  go mod edit -require rsc.io/badzip@v1.0.0
     9  ! go build -mod=mod rsc.io/badzip
    10  stderr 'zip for rsc.io/badzip@v1.0.0 has unexpected file rsc.io/badzip@v1.0.0.txt'
    11  
    12  -- go.mod --
    13  module m
    14  

View as plain text