You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
create a minimal mod package, change root dir to 555 ( rm write permission) and rm go.sum make sure your minimal package add at lease one third-party dependence
try use package generated in step1 to visit imports
What did you see instead?
gopackages: go [list -e -json -compiled -test=false -export=false -deps=true -find=false -- gopkg.in/yaml.v2]: exit status 1: go: writing go.sum: open /Users/sunliver/go/pkg/mod/gopkg.in/yaml.v2@v2.2.1/go.sum: permission denied
I find this behavior when I try to visit imports under mod cache, but the package only have go.mod but miss go.sum(eg. yaml).
Q: Currently, is go.sum necessary for x/tools/go/packages to work?
The text was updated successfully, but these errors were encountered:
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Yes
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
make sure GO111MODULE=on
make sure your minimal package add at lease one third-party dependence
What did you see instead?
gopackages: go [list -e -json -compiled -test=false -export=false -deps=true -find=false -- gopkg.in/yaml.v2]: exit status 1: go: writing go.sum: open /Users/sunliver/go/pkg/mod/gopkg.in/yaml.v2@v2.2.1/go.sum: permission denied
I find this behavior when I try to visit imports under mod cache, but the package only have
go.mod
but missgo.sum
(eg. yaml).Q: Currently, is
go.sum
necessary forx/tools/go/packages
to work?The text was updated successfully, but these errors were encountered: