Skip to content

Commit 3499702

Browse files
authored
Merge pull request ActiveState#3355 from ActiveState/mitchell/dx-2894
Fixed in-progress build detection.
2 parents fe9149e + 6e3f9e2 commit 3499702

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pkg/platform/runtime/setup/setup.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -615,7 +615,8 @@ func (s *Setup) fetchAndInstallArtifactsFromBuildPlan(bp *buildplan.BuildPlan, i
615615
}
616616

617617
buildReady := bp.IsBuildReady()
618-
if !buildReady && len(artifactsToInstall.Filter(buildplan.FilterSuccessfulArtifacts())) == len(artifactsToInstall) {
618+
filterInstallable := func(a *buildplan.Artifact) bool { return a.URL != "" }
619+
if !buildReady && len(artifactsToInstall.Filter(buildplan.FilterSuccessfulArtifacts(), filterInstallable)) == len(artifactsToInstall) {
619620
// Even though the build may not be complete, all of the necessary artifacts are ready.
620621
buildReady = true
621622
}

0 commit comments

Comments
 (0)