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() {
548548 if semver .Compare (getEnvGoSemVer (), "v1.21.0" ) < 0 && goVersionInfo .Found && semver .Compare ("v" + goVersionInfo .Version , getEnvGoSemVer ()) > 0 {
549549 diagnostics .EmitNewerGoVersionNeeded (getEnvGoSemVer (), "v" + goVersionInfo .Version )
550550 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 ())
552555 }
553556 }
554557
You can’t perform that action at this time.
0 commit comments