@@ -755,17 +755,16 @@ func getVersionWhenGoModVersionNotFound(v versionInfo) (msg, version string) {
755
755
// backwards compatible, so we install the maximum supported version.
756
756
msg = "No `go.mod` file found. The version of Go installed in the environment (" +
757
757
v .goEnvVersion + ") is outside of the supported range (" + minGoVersion + "-" +
758
- maxGoVersion + "). Writing an environment file specifying the maximum supported " +
759
- "version of Go (" + maxGoVersion + " )."
758
+ maxGoVersion + "). Requesting the maximum supported version of Go (" + maxGoVersion +
759
+ ")."
760
760
version = maxGoVersion
761
761
diagnostics .EmitNoGoModAndGoEnvUnsupported (msg )
762
762
} else {
763
763
// The version of Go that is installed is supported. We have no indication which version
764
764
// was intended to be used to build this project. We assume that the installed version is
765
765
// suitable and do not install a version of Go.
766
766
msg = "No `go.mod` file found. Version " + v .goEnvVersion + " installed in the " +
767
- "environment is supported. Writing an environment file not specifying any " +
768
- "version of Go."
767
+ "environment is supported. Not requesting any version of Go."
769
768
version = ""
770
769
diagnostics .EmitNoGoModAndGoEnvSupported (msg )
771
770
}
@@ -780,7 +779,7 @@ func getVersionWhenGoModVersionTooHigh(v versionInfo) (msg, version string) {
780
779
// range. We do not install a version of Go.
781
780
msg = "The version of Go found in the `go.mod` file (" + v .goModVersion +
782
781
") is above the supported range (" + minGoVersion + "-" + maxGoVersion +
783
- "). Writing an environment file not specifying any version of Go."
782
+ "). Not requesting any version of Go."
784
783
version = ""
785
784
diagnostics .EmitGoModVersionTooHigh (msg )
786
785
@@ -796,8 +795,8 @@ func getVersionWhenGoModVersionTooLow(v versionInfo) (msg, version string) {
796
795
// minimum supported version.
797
796
msg = "The version of Go found in the `go.mod` file (" + v .goModVersion +
798
797
") is below the supported range (" + minGoVersion + "-" + maxGoVersion +
799
- "). No version of Go installed. Writing an environment file specifying the " +
800
- "minimum supported version of Go (" + minGoVersion + ")."
798
+ "). No version of Go installed. Requesting the minimum supported version of Go ( " +
799
+ minGoVersion + ")."
801
800
version = minGoVersion
802
801
diagnostics .EmitGoModVersionTooLowAndNoGoEnv (msg )
803
802
} else if outsideSupportedRange (v .goEnvVersion ) {
@@ -808,16 +807,15 @@ func getVersionWhenGoModVersionTooLow(v versionInfo) (msg, version string) {
808
807
") is below the supported range (" + minGoVersion + "-" + maxGoVersion +
809
808
"). The version of Go installed in the environment (" + v .goEnvVersion +
810
809
") is outside of the supported range (" + minGoVersion + "-" + maxGoVersion + "). " +
811
- "Writing an environment file specifying the minimum supported version of Go (" +
812
- minGoVersion + ")."
810
+ "Requesting the minimum supported version of Go (" + minGoVersion + ")."
813
811
version = minGoVersion
814
812
diagnostics .EmitGoModVersionTooLowAndEnvVersionUnsupported (msg )
815
813
} else {
816
814
// The version of Go that is installed is supported. The version in the `go.mod` file is
817
815
// below the supported range. We do not install a version of Go.
818
816
msg = "The version of Go installed in the environment (" + v .goEnvVersion +
819
817
") is supported and is high enough for the version found in the `go.mod` file (" +
820
- v .goModVersion + "). Writing an environment file not specifying any version of Go."
818
+ v .goModVersion + "). Not requesting any version of Go."
821
819
version = ""
822
820
diagnostics .EmitGoModVersionTooLowAndEnvVersionSupported (msg )
823
821
}
@@ -831,16 +829,16 @@ func getVersionWhenGoModVersionSupported(v versionInfo) (msg, version string) {
831
829
if ! v .goEnvVersionFound {
832
830
// There is no Go version installed. The version in the `go.mod` file is supported.
833
831
// We install the version from the `go.mod` file.
834
- msg = "No version of Go installed. Writing an environment file specifying the version " +
835
- "of Go found in the `go.mod` file (" + v .goModVersion + ")."
832
+ msg = "No version of Go installed. Requesting the version of Go found in the `go.mod` " +
833
+ "file (" + v .goModVersion + ")."
836
834
version = v .goModVersion
837
835
diagnostics .EmitGoModVersionSupportedAndNoGoEnv (msg )
838
836
} else if outsideSupportedRange (v .goEnvVersion ) {
839
837
// The version of Go that is installed is outside of the supported range. The version in
840
838
// the `go.mod` file is supported. We install the version from the `go.mod` file.
841
839
msg = "The version of Go installed in the environment (" + v .goEnvVersion +
842
840
") is outside of the supported range (" + minGoVersion + "-" + maxGoVersion + "). " +
843
- "Writing an environment file specifying the version of Go from the `go.mod` file (" +
841
+ "Requesting the version of Go from the `go.mod` file (" +
844
842
v .goModVersion + ")."
845
843
version = v .goModVersion
846
844
diagnostics .EmitGoModVersionSupportedAndGoEnvUnsupported (msg )
@@ -850,8 +848,7 @@ func getVersionWhenGoModVersionSupported(v versionInfo) (msg, version string) {
850
848
// the `go.mod` file.
851
849
msg = "The version of Go installed in the environment (" + v .goEnvVersion +
852
850
") is lower than the version found in the `go.mod` file (" + v .goModVersion +
853
- "). Writing an environment file specifying the version of Go from the `go.mod` " +
854
- "file (" + v .goModVersion + ")."
851
+ "). Requesting the version of Go from the `go.mod` file (" + v .goModVersion + ")."
855
852
version = v .goModVersion
856
853
diagnostics .EmitGoModVersionSupportedHigherGoEnv (msg )
857
854
} else {
@@ -860,7 +857,7 @@ func getVersionWhenGoModVersionSupported(v versionInfo) (msg, version string) {
860
857
// a version of Go.
861
858
msg = "The version of Go installed in the environment (" + v .goEnvVersion +
862
859
") is supported and is high enough for the version found in the `go.mod` file (" +
863
- v .goModVersion + "). Writing an environment file not specifying any version of Go."
860
+ v .goModVersion + "). Not requesting any version of Go."
864
861
version = ""
865
862
diagnostics .EmitGoModVersionSupportedLowerEqualGoEnv (msg )
866
863
}
0 commit comments