diff --git a/pkg/platform/runtime/setup/setup.go b/pkg/platform/runtime/setup/setup.go index 51049739a2..051295b4a6 100644 --- a/pkg/platform/runtime/setup/setup.go +++ b/pkg/platform/runtime/setup/setup.go @@ -485,7 +485,7 @@ func (s *Setup) fetchAndInstallArtifactsFromBuildPlan(installFunc artifactInstal ) artifactsToInstall := []artifact.ArtifactID{} - buildtimeArtifacts := runtimeArtifacts + // buildtimeArtifacts := runtimeArtifacts if buildResult.BuildReady { // If the build is already done we can just look at the downloadable artifacts as they will be a fully accurate // prediction of what we will be installing. @@ -502,13 +502,6 @@ func (s *Setup) fetchAndInstallArtifactsFromBuildPlan(installFunc artifactInstal artifactsToInstall = append(artifactsToInstall, a.ArtifactID) } } - - // We also caclulate the artifacts to be built which includes more than the runtime artifacts. - // This is used to determine if we need to show the "build in progress" screen. - buildtimeArtifacts, err = buildplan.BuildtimeArtifacts(buildResult.Build, false) - if err != nil { - return nil, nil, errs.Wrap(err, "Could not get buildtime artifacts") - } } // The log file we want to use for builds @@ -525,7 +518,7 @@ func (s *Setup) fetchAndInstallArtifactsFromBuildPlan(installFunc artifactInstal ArtifactNames: artifactNames, LogFilePath: logFilePath, ArtifactsToBuild: func() []artifact.ArtifactID { - return artifact.ArtifactIDsFromBuildPlanMap(buildtimeArtifacts) // This does not account for cached builds + return artifact.ArtifactIDsFromBuildPlanMap(runtimeArtifacts) // This does not account for cached builds }(), // Yes these have the same value; this is intentional. // Separating these out just allows us to be more explicit and intentional in our event handling logic.