mirror of
https://github.com/mudler/luet.git
synced 2025-09-02 15:54:39 +00:00
Resolve deps before compiling
This commit is contained in:
@@ -189,6 +189,11 @@ func (cs *LuetCompiler) compileWithImage(image, buildertaggedImage, packageImage
|
||||
func (cs *LuetCompiler) Compile(concurrency int, keepPermissions bool, p CompilationSpec) (Artifact, error) {
|
||||
Debug("Compiling " + p.GetPackage().GetName())
|
||||
|
||||
err := cs.Tree().ResolveDeps(concurrency) // FIXME: This should be cached in CompileParallel, and not done for each compilation
|
||||
if err != nil {
|
||||
return nil, errors.Wrap(err, "While resoolving tree world deps")
|
||||
}
|
||||
|
||||
if len(p.GetPackage().GetRequires()) == 0 && p.GetImage() == "" {
|
||||
Error("Package with no deps and no seed image supplied, bailing out")
|
||||
return nil, errors.New("Package " + p.GetPackage().GetFingerPrint() + "with no deps and no seed image supplied, bailing out")
|
||||
|
Reference in New Issue
Block a user