Repository navigation
Fix defaults chaining for generated packages - #159
Open
akritkbehera wants to merge 2 commits into
Open
akritkbehera wants to merge 2 commits into
akritkbehera wants to merge 2 commits into
Conversation
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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; existinggetPackagesimplementations 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 passedruff check .— passedgit diff --check— passedThe full suite was attempted earlier in this checkout; unrelated host and sandbox environment failures prevented a clean full-suite result.