Skip to content

Commit 75dd9d6

Browse files
committed
Use the proper logic when disabling the go module version
Signed-off-by: Cosmin Cojocar <[email protected]>
1 parent 1e1fc91 commit 75dd9d6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

helpers.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -502,7 +502,7 @@ func RootPath(root string) (string, error) {
502502
// GoVersion returns parsed version of Go mod version and fallback to runtime version if not found.
503503
func GoVersion() (int, int, int) {
504504
_, ok := os.LookupEnv(noGoModVersion)
505-
if ok {
505+
if !ok {
506506
if goModVersion, err := goModVersion(); err == nil {
507507
return parseGoVersion(goModVersion)
508508
}

0 commit comments

Comments
 (0)