Skip to content

Conversation

@cpuguy83
Copy link
Collaborator

@cpuguy83 cpuguy83 commented Dec 20, 2024

Cherry-picks 8cc2df0 from #480 to avoid merge conflicts

Adds tests and fixes implementations where we weren't filling default
values and expanding args.
This was mostly a problem for anything under the targets section, but
also a few other fields where arg expansion is nice to have (such as in
test commands).

Also splits some types/functions off to separate files so we don't have one mega file.

Fixes #479
Fixes #467

This makes it so frontends can have their own args that the dalec core
does not need to know about.

This also moves the custom args for windowscross local to that
implementation.

Signed-off-by: Brian Goff <cpuguy83@gmail.com>
@cpuguy83 cpuguy83 requested a review from a team as a code owner December 20, 2024 18:10
@cpuguy83 cpuguy83 requested a review from adamperlin December 20, 2024 18:11
@cpuguy83 cpuguy83 force-pushed the improve_subst branch 2 times, most recently from d797b36 to eb8031a Compare December 20, 2024 18:25
Adds tests and fixes implementations where we weren't filling default
values and expanding args.
This was mostly a problem for anything under the `targets` section, but
also a few other fields where arg expansion is nice to have (such as in
test commands).

Signed-off-by: Brian Goff <cpuguy83@gmail.com>
Copy link
Contributor

@adamperlin adamperlin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks good to me! I think moving different spec sections to different files makes it much clearer which spots are getting defaults filled/args substituted and helps break out the logic nicely.

@cpuguy83 cpuguy83 merged commit bf9ef0c into project-dalec:main Jan 3, 2025
9 checks passed
@cpuguy83 cpuguy83 deleted the improve_subst branch January 3, 2025 17:41
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.

[REQ] Some, typically nested, fields are not getting args resolved [BUG] apt: Repos keys must be readable by non-root user

2 participants