File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -89,16 +89,16 @@ func detectGoVersion() string {
89
89
}
90
90
91
91
// detectGoVersionFromGoMod tries to get Go version from go.mod.
92
- // It returns toolchain version if present,
93
- // else it returns go version if present,
92
+ // It returns ` toolchain` version if present,
93
+ // else it returns `go` version if present,
94
94
// else it returns empty.
95
95
func detectGoVersionFromGoMod () string {
96
96
file , _ := gomoddirectives .GetModuleFile ()
97
97
if file == nil {
98
98
return ""
99
99
}
100
100
101
- // The toolchain exist only if 'toolchain' version > 'go' version.
101
+ // The toolchain exists only if 'toolchain' version > 'go' version.
102
102
// If 'toolchain' version <= 'go' version, `go mod tidy` will remove 'toolchain' version from go.mod.
103
103
if file .Toolchain != nil && file .Toolchain .Name != "" {
104
104
return strings .TrimPrefix (file .Toolchain .Name , "go" )
You can’t perform that action at this time.
0 commit comments