mirror of
https://github.com/mudler/luet.git
synced 2025-06-25 06:52:59 +00:00
First order, then drop - or hash would mismatch
This commit is contained in:
parent
4c1c7451e7
commit
b64cf677c6
@ -225,17 +225,13 @@ func (cs *LuetCompiler) Compile(concurrency int, keepPermissions bool, p Compila
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, errors.Wrap(err, "While computing a solution for "+p.GetPackage().GetName())
|
return nil, errors.Wrap(err, "While computing a solution for "+p.GetPackage().GetName())
|
||||||
}
|
}
|
||||||
Info("Build dependencies: ( target "+p.GetPackage().GetName()+")", solution.Explain())
|
|
||||||
|
|
||||||
dependencies := solution.Drop(p.GetPackage()).Order() // at this point we should have a flattened list of deps to build, including all of them (with all constraints propagated already)
|
dependencies := solution.Order(p.GetPackage().GetFingerPrint()).Drop(p.GetPackage()) // at this point we should have a flattened list of deps to build, including all of them (with all constraints propagated already)
|
||||||
departifacts := []Artifact{} // TODO: Return this somehow
|
departifacts := []Artifact{} // TODO: Return this somehow
|
||||||
deperrs := []error{}
|
deperrs := []error{}
|
||||||
var lastHash string
|
var lastHash string
|
||||||
//Info("Build dependencies: ( target "+p.GetPackage().GetName()+")", dependencies.Explain())
|
Info("Build dependencies: ( target "+p.GetPackage().GetName()+")", dependencies.Explain())
|
||||||
|
|
||||||
if len(dependencies[0].Package.GetRequires()) != 0 {
|
|
||||||
return nil, errors.New("The first dependency of the deptree doesn't have an image base")
|
|
||||||
}
|
|
||||||
for _, assertion := range dependencies { //highly dependent on the order
|
for _, assertion := range dependencies { //highly dependent on the order
|
||||||
if assertion.Value && assertion.Package.Flagged() {
|
if assertion.Value && assertion.Package.Flagged() {
|
||||||
Info("( target "+p.GetPackage().GetName()+") Building", assertion.Package.GetName())
|
Info("( target "+p.GetPackage().GetName()+") Building", assertion.Package.GetName())
|
||||||
|
Loading…
Reference in New Issue
Block a user