Skip to content

Commit d42d039

Browse files
committed
fix: handle NUL GOMOD on windows
1 parent 112c09d commit d42d039

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

processor.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,7 @@ func loadGoModFile() ([]byte, error) {
265265
return os.ReadFile(goModFilename)
266266
}
267267

268-
if goEnv["GOMOD"] == "/dev/null" {
268+
if goEnv["GOMOD"] == "/dev/null" || goEnv["GOMOD"] == "NUL" {
269269
return nil, errors.New("current working directory must have a go.mod file")
270270
}
271271

0 commit comments

Comments
 (0)