Skip to content
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

Closed
wants to merge 1 commit into from

Conversation

mvo5
Copy link
Contributor

@mvo5 mvo5 commented May 7, 2024

The depsolve-dnf5 description was mixed up with the description below. This commit fixes this.

The depsolve-dnf5 description was mixed up with the description
below. This commit fixes this.
@@ -4,20 +4,16 @@

These directives are only allowed within a [`otk.target.osbuild.<name>`](./01-directive.md#otktargetconsumername).
Copy link
Contributor Author

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 is osbuild from the target. This would also ensure that users cannot use external commands that are not matching their target

Copy link
Member

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.

Copy link
Contributor Author

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 a

otk.target.osbuild:
 stages:
   - otk.external.users:

and 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).

### `otk.external.osbuild.depsolve-dnf5`

Expects a `map` as its value.
### `otk.external.osbuild.file-from-text`
Copy link
Contributor Author

Choose a reason for hiding this comment

The 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

Copy link
Member

Choose a reason for hiding this comment

The 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.

@mvo5
Copy link
Contributor Author

mvo5 commented May 16, 2024

This is obsolete with the most recent discussions

@mvo5 mvo5 closed this May 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants