fixup: propagate outputpath

This commit is contained in:
Ettore Di Giacinto
2021-05-23 17:36:09 +02:00
parent 0dc78ebe41
commit 0ceaf09615

View File

@@ -813,6 +813,8 @@ func (cs *LuetCompiler) resolveJoinImages(concurrency int, keepPermissions bool,
return errors.Wrap(err, "while generating images to join from")
}
wantsArtifact := true
spec.SetOutputPath(p.GetOutputPath())
artifact, err := cs.compile(concurrency, keepPermissions, &wantsArtifact, spec)
if err != nil {
return errors.Wrap(err, "failed building join image")
@@ -866,6 +868,7 @@ func (cs *LuetCompiler) resolveMultiStageImages(concurrency int, keepPermissions
return errors.Wrap(err, "while generating images to copy from")
}
noArtifact := false
spec.SetOutputPath(p.GetOutputPath())
artifact, err := cs.compile(concurrency, keepPermissions, &noArtifact, spec)
if err != nil {