Skip to content

build: enhance resolve_spec_data to support default variables#97

Open
akritkbehera wants to merge 1 commit into
bitsorg:mainfrom
akritkbehera:fix_variables_with_defaultsMeta
Open

build: enhance resolve_spec_data to support default variables#97
akritkbehera wants to merge 1 commit into
bitsorg:mainfrom
akritkbehera:fix_variables_with_defaultsMeta

Conversation

@akritkbehera
Copy link
Copy Markdown
Collaborator

@akritkbehera akritkbehera commented May 29, 2026

Pass defaults-profile variables to recipes, better undefined-variable errors, and file includes

  • Variables defined in defaults are now available for all package recipes.
  • Undefined %(var)s now errors with the variable name instead of a bare KeyError
  • %(##INCLUDE:configdir/file)s expands a file inline during parsing.
    Reason: If we simple source another file it has an variable that isn't expanded.
    As this is done before hashing changes to the file will lead to rebuild.

doBuild to support default variables in recipe resolution

build: add support for include directives in resolve_spec_data
@akritkbehera akritkbehera marked this pull request as ready for review May 29, 2026 13:22
@pbuncic
Copy link
Copy Markdown
Contributor

pbuncic commented May 30, 2026

What issues are we trying to solve by adding INCLUDE processing and additional variables?

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