Matching (possibly subsets) of types should be folded into 1 #344
Labels
No labels
bugfix
cleanup
discussion
documentation
doing
done
feature
improvement
packaging
Stale
testing
TODO
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: ungleich-public/cdist#344
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
I'm running into an issue with the
__git
type and my own__pkg
type.I'm running a mix of devuan and funtoo (gentoo derivative) and I want to abstract the packages I install. So I have an intermediate
__pkg
that extracts the correct package name for the OS type from a top-level dictionary file.So I can do
__pkg docker
everywhere, which gets 'translated' to__package docker
on devuan, but__package app-emulation/docker
on gentoo (and notx11-plugins/docker
, for example).However,
__git
starts with the line__package git --state present
and so I get an error:The parameters that are defined for both are the same (
version
andstate
), so I think this 'conflict' should be avoided by merging these types into 1 (the one with the most specific definition).Not sure if that's possible in the system, but this really is not a 'real' conflict, obviously.
And having some types mandate that they have a package installed is obviously correct, but that should not interfere with manually defined packages if they don't actually conflict.
So there is a conflict: the parameters for "__package_emerge/git" are different. In fact the
__git
type just uses git as name, the__pkg
one uses "dev-cvs/git".So the easiest way to solve this would be to use the same name under funtoo, just git. Then the conflict should vanish.
Other more sophisticated solutions are probably possible, but this one would be straight forward.