-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Include replaces instead appends #125
Comments
Hi Thomas, When merging, keys with the same name from upper layers get overwritten. That's on purpose so you can redefine them on lower layers. Even if keg could concatenate lists, you'd end up with two The keg strategy of merging snippets together under the same key is using namespaces. Namespace keys are no different in terms of merging, but when generating the XML file, they do not produce an element (just a comment), so all elements in the namespace become a child element of the key they are under. We use this in image_defaults.yaml
base-image/image.yaml
This looks a bit odd because there are two preferences keys with different type (the global one is a dict, allowing you to overwrite |
Hello Thanks, thanks for Support. Now I've implemented: images-testing/sle-15-5.vmware/image_defaults.yaml
images-testing/sle-15-5.vmware/base-image/image.yaml
result
Not nice. But working. But if I implement this with packages I've a problem: images-testing/sle-15-5.vmware/image_defaults.yaml
result
I think the problem is that the packet definitions themselves already contain namespaces How can i solve the issue? best regards Thomas |
Nested namespaces should be fine actually, albeit probably unnecessary. The image schema definition fails because it expects a However, it should still work fine if you have one |
Hello,
I have a problem with includes.
keg version: 2.0.3
OS: OpenSUSE Tumbleweed @ WSL2 on Windows 11
I've a base image and a derived image.
images/sle-15-5.vmware/image_defaults.yaml
images/sle-15-5.vmware/base-image/image.yaml
result
expected result
I would like to append and not replace.
What do I need to change?
Best regards Thomas
The text was updated successfully, but these errors were encountered: