...

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

Documentation: cmd/go/testdata/script

     1# go list should work in ordinary conditions.
     2go list ./...
     3! stdout _data
     4
     5# skip in conditions where chmod 0 may not work.
     6# plan9 should be fine, but copied from list_perm.txt unchanged.
     7[root] skip
     8[GOOS:windows] skip
     9[GOOS:plan9] skip
    10
    11# go list should work with unreadable _data directory.
    12chmod 0 _data
    13go list ./...
    14! stdout _data
    15
    16-- go.mod --
    17module m
    18
    19-- x.go --
    20package m
    21
    22-- _data/x.go --
    23package p

View as plain text