-
Notifications
You must be signed in to change notification settings - Fork 9
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
02-external: move common text under depsolve-dnf{4,5} #56
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,20 +4,16 @@ | |
|
||
These directives are only allowed within a [`otk.target.osbuild.<name>`](./01-directive.md#otktargetconsumername). | ||
|
||
### `otk.external.osbuild.depsolve-dnf4` | ||
### `otk.external.osbuild.depsolve-dnf{4,5}` | ||
|
||
Solves a list of package specifications to RPMs and specifies them in the | ||
osbuild manifest as sources. | ||
|
||
### `otk.external.osbuild.depsolve-dnf5` | ||
|
||
Expects a `map` as its value. | ||
### `otk.external.osbuild.file-from-text` | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. (nitpick) neither this nor the one below are actually used yet, I think would be ideal if all our directives have a use-case There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Right; but removing them today only to re-add them next week when the usecase arises (for these directives: it will, they're necessary for the file customization(s) and a few image types) also seems a bit weird. |
||
|
||
`osbuild` directives to write files. **If a stage exists for the type of file | ||
you want to write: use it.** See the [best practices](../04-best-practices.md). | ||
|
||
### `otk.external.osbuild.file-from-text` | ||
|
||
Write inline text to a file. Creates a source in the manifest and copies that | ||
source to the destination in the tree. | ||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If the directives are only allowed under a specific target, we could allow users to write this shother:
otk.external.osbuild.file-from-text`` ->
otk.external.file-from-text`` as we know that the context isosbuild
from the target. This would also ensure that users cannot use external commands that are not matching their targetThere was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We could though I like the explicitness; I guess I'm about even on this so let's see what others feel like.
It'd feel weird to me if we had
otk.external.file-from-text
that does different things under different targets.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have no super strong opinion here but we should make sure that we do not allow using tools for targets that do not match the target target.
I am not sure if e.g. different
otk.external.user
implementations depending on the target would be bad, I mean, they are clearly scoped under aand in kiwi the same. But I don't really mind much, it just seems a bit redundant (both in terms of extra checks needed to avoid mixing targets and in extra typing for the users).