...

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

Documentation: cmd/go/testdata/script

     1# 'go mod edit' opportunistically locks the side-lock file in the module cache,
     2# for compatibility with older versions of the 'go' command.
     3# It does not otherwise depend on the module cache, so it should not
     4# fail if the module cache directory cannot be created.
     5
     6[root] skip
     7
     8mkdir $WORK/readonly
     9chmod 0555 $WORK/readonly
    10env GOPATH=$WORK/readonly/nonexist
    11
    12go mod edit -go=1.17
    13
    14-- go.mod --
    15module example.com/m

View as plain text