We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3055e30 commit b5e9bf7Copy full SHA for b5e9bf7
internal/deps/deps.go
@@ -80,7 +80,7 @@ func getGoModPath() (string, error) {
80
}
81
82
func GetModuleInfo(path string) (Module, error) {
83
- cmd := exec.Command("go", "list", "-m", "-u", "-json", path)
+ cmd := exec.Command("go", "list", "-m", "-u", "-mod=readonly", "-json", path)
84
cmd.Env = append(os.Environ(), "GOWORK=off")
85
out, err := cmd.Output()
86
if err != nil {
0 commit comments