mirror of
https://github.com/mudler/luet.git
synced 2025-09-09 02:59:30 +00:00
⚙️ Fixup runtime tree detection during join images
We need to hook up the runtime DB in order to query the correct part of the tree
This commit is contained in:
@@ -54,6 +54,7 @@ type Compiler struct {
|
||||
|
||||
// Image repository to push to
|
||||
PushFinalImagesRepository string
|
||||
RuntimeDatabase types.PackageDatabase
|
||||
|
||||
Context types.Context
|
||||
}
|
||||
@@ -93,6 +94,13 @@ func WithOptions(opt *Compiler) func(cfg *Compiler) error {
|
||||
}
|
||||
}
|
||||
|
||||
func WithRuntimeDatabase(db types.PackageDatabase) func(cfg *Compiler) error {
|
||||
return func(cfg *Compiler) error {
|
||||
cfg.RuntimeDatabase = db
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
// WithFinalRepository Sets the final repository where to push
|
||||
// images of built artifacts
|
||||
func WithFinalRepository(r string) func(cfg *Compiler) error {
|
||||
|
Reference in New Issue
Block a user