Skip to content

Commit

Permalink
fix: handle NUL GOMOD on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
ryancurrah committed Jun 29, 2024
1 parent 112c09d commit 1405cf0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion processor.go
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@ func loadGoModFile() ([]byte, error) {
return os.ReadFile(goModFilename)
}

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

Expand Down

0 comments on commit 1405cf0

Please sign in to comment.