Skip to content

Fix defaults chaining for generated packages - #159

Open
akritkbehera wants to merge 2 commits into
bitsorg:optimisationfrom
akritkbehera:fix/defaults-chaining-generated-packages
Open

akritkbehera wants to merge 2 commits into
bitsorg:optimisationfrom
akritkbehera:fix/defaults-chaining-generated-packages

Conversation

@akritkbehera

Copy link
Copy Markdown
Collaborator

Summary

Fix defaults chaining for generated packages by passing merged defaults variables into generated-package discovery and provider resolution, including the init and doctor paths. A generator can opt into those variables through getPackagesWithDefaults; existing getPackages implementations keep working.

The build alias block from the source commit was removed.

Stack

Depends on #153, which also targets optimisation. This branch includes the callable generator commit from #153 below the defaults chaining fix. Once #153 merges, the PR diff should contain only the follow-up fix.

Validation

  • PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 python3 -m pytest -q tests/test_recipe_layout.py tests/test_parseRecipe.py tests/test_repo_provider.py — 76 passed
  • ruff check . — passed
  • git diff --check — passed

The full suite was attempted earlier in this checkout; unrelated host and sandbox environment failures prevented a clean full-suite result.

Avoid subprocess overhead for opt-in generators. Warn on command fallback, preserve legacy generators, and document hash effects.
Pass merged defaults variables into generated-package discovery and provider resolution, including init and doctor, so chained defaults select the correct generated recipes.

This branch has not been deployed

No deployments
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.

1 participant