...

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

Documentation: cmd/go/testdata/script

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

View as plain text