Skip to content

Commit b5e9bf7

Browse files
committed
feat: vendor support #1
1 parent 3055e30 commit b5e9bf7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/deps/deps.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ func getGoModPath() (string, error) {
8080
}
8181

8282
func GetModuleInfo(path string) (Module, error) {
83-
cmd := exec.Command("go", "list", "-m", "-u", "-json", path)
83+
cmd := exec.Command("go", "list", "-m", "-u", "-mod=readonly", "-json", path)
8484
cmd.Env = append(os.Environ(), "GOWORK=off")
8585
out, err := cmd.Output()
8686
if err != nil {

0 commit comments

Comments
 (0)