Repository navigation
fix(workspace): parameterize sync recipe so extras are opt-in - #924
Merged
Merged
Conversation
The shipped justfile.project `sync` recipe forced `uv sync --all-extras --all-groups`, hard-failing on repos that quarantine platform-limited optional extras (e.g. cp312/cp313-only wheels) when run on the cp314 image. Parameterize the recipe as `sync *args="--all-groups"` and drop the forced `--all-extras`: dev groups stay synced, extras become opt-in via `just sync --all-extras`. The `update` recipe uses the new default. Refs: #892
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.
Closes #892
Summary
The shipped consumer template recipe
syncinassets/workspace/justfile.projectforceduv sync --all-extras --all-groups.--all-extrasinstalls every optional extra unconditionally, so repos that quarantine platform-limited dependencies (e.g. cp312/cp313-only wheels) in extras hit a hardjust syncfailure on the cp314 image.This parameterizes the recipe and drops the forced
--all-extras:Dev groups stay synced by default; extras are now opt-in via
just sync --all-extras. Theupdaterecipe (which callsjust sync) uses the new default unchanged.Changelog
Under
## Unreleased→### Fixed(rootCHANGELOG.md, mirrored toassets/workspace/.devcontainer/CHANGELOG.mdby thesync-manifesthook):syncrecipe no longer forces--all-extras(#892) — recipe is parameterized (sync *args, default--all-groups); extras become opt-in, fixing hard-fails on repos with platform-limited optional extras.Verification
just --show sync/just --show updateparse correctly with the new signature.init-workspace.shextract_template_recipeawk repair (fix(workspace): scaffold upgrade strands base recipes — justfile.project is preserved but now owns sync/precommit/test, breaking the shipped ci.yml #877) still detects thesyncrecipe with the newsync *args="--all-groups":header.uv sync --all-extrascomment intests/test_integration.pyto reflect the new default (--all-groups). No test pins the templatesyncrecipe body, so no behavioral test change was needed — this is a template/config change.just precommit(full hook suite) green.