Snapshot import defaults at load preflight

This commit is contained in:
2026-10-26 00:13:34 +00:00
parent c25cf39d19
commit 643f43ce6a
10 changed files with 73 additions and 43 deletions

View File

@@ -75,8 +75,8 @@ func toEngineLayeredOptions[T any](options LayeredOptions[T]) engine.LayeredOpti
SourceVersionMode: engine.SourceVersionModeFromFacade(uint8(options.SourceVersionMode)),
Overlay: options.Overlay,
OverlayFilesystem: toEngineFilesystemContext(options.OverlayFilesystem),
ImportDefaults: toEngineImportDefaults(options.ImportDefaults),
}
result = engine.LayeredOptionsWithImportDefaults(result, toEngineImportDefaults(options.ImportDefaults))
if options.Underlays != nil {
result.Underlays = make([]engine.Underlay, len(options.Underlays))
for index, group := range options.Underlays {