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 1e1fc91 commit 75dd9d6Copy full SHA for 75dd9d6
helpers.go
@@ -502,7 +502,7 @@ func RootPath(root string) (string, error) {
502
// GoVersion returns parsed version of Go mod version and fallback to runtime version if not found.
503
func GoVersion() (int, int, int) {
504
_, ok := os.LookupEnv(noGoModVersion)
505
- if ok {
+ if !ok {
506
if goModVersion, err := goModVersion(); err == nil {
507
return parseGoVersion(goModVersion)
508
}
0 commit comments