File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -548,7 +548,10 @@ func installDependenciesAndBuild() {
548
548
if semver .Compare (getEnvGoSemVer (), "v1.21.0" ) < 0 && goVersionInfo .Found && semver .Compare ("v" + goVersionInfo .Version , getEnvGoSemVer ()) > 0 {
549
549
diagnostics .EmitNewerGoVersionNeeded (getEnvGoSemVer (), "v" + goVersionInfo .Version )
550
550
if val , _ := os .LookupEnv ("GITHUB_ACTIONS" ); val == "true" {
551
- log .Printf ("The go.mod version is newer than the installed version of Go. Consider adding an actions/setup-go step to your workflow.\n " )
551
+ log .Printf (
552
+ "The go.mod file requires version %s of Go, but version %s is installed. Consider adding an actions/setup-go step to your workflow.\n " ,
553
+ "v" + goVersionInfo .Version ,
554
+ getEnvGoSemVer ())
552
555
}
553
556
}
554
557
You can’t perform that action at this time.
0 commit comments