Skip to content

Commit

Permalink
Use the proper logic when disabling the go module version
Browse files Browse the repository at this point in the history
Signed-off-by: Cosmin Cojocar <cosmin@cojocar.ch>
  • Loading branch information
ccojocar committed May 22, 2024
1 parent 1e1fc91 commit 75dd9d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion helpers.go
Original file line number Diff line number Diff line change
Expand Up @@ -502,7 +502,7 @@ func RootPath(root string) (string, error) {
// GoVersion returns parsed version of Go mod version and fallback to runtime version if not found.
func GoVersion() (int, int, int) {
_, ok := os.LookupEnv(noGoModVersion)
if ok {
if !ok {
if goModVersion, err := goModVersion(); err == nil {
return parseGoVersion(goModVersion)
}
Expand Down

0 comments on commit 75dd9d6

Please sign in to comment.