You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
log.Println("The version of Go specified in the go.mod file ("+goModVersion+") is outside of the supported range ("+minGoVersion+"-"+maxGoVersion+").")
719
+
//TODO: emit diagnostic
720
+
return""
721
+
}
722
+
723
+
if!isGoInstalled() {
724
+
ifgoDirectiveFound {
725
+
log.Println("No version of Go installed. Writing an `environment.json` file specifying the version of Go from the go.mod file ("+goModVersion+").")
726
+
returngoModVersion
727
+
} else {
728
+
log.Println("No version of Go installed and no `go.mod` file found. Writing an `environment.json` file specifying the maximum supported version of Go ("+maxGoVersion+").")
729
+
returnmaxGoVersion
730
+
}
731
+
}
732
+
733
+
envVersion:=getEnvGoVersion()[2:]
734
+
735
+
ifoutsideSupportedRange(envVersion) {
736
+
log.Println("The version of Go installed in the environment ("+goModVersion+") is outside of the supported range ("+minGoVersion+"-"+maxGoVersion+").")
737
+
//TODO: emit diagnostic
738
+
return""
739
+
}
700
740
741
+
if!goDirectiveFound {
742
+
log.Println("No `go.mod` file found. Version "+envVersion+" installed in the environment.")
0 commit comments