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

     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  
     8  mkdir $WORK/readonly
     9  chmod 0555 $WORK/readonly
    10  env GOPATH=$WORK/readonly/nonexist
    11  
    12  go mod edit -go=1.17
    13  
    14  -- go.mod --
    15  module example.com/m
    16  

View as plain text