Skip to content

fix(workspace): parameterize sync recipe so extras are opt-in - #924

Merged
c-vigo merged 2 commits into
devfrom
bugfix/892-sync-extras
Jul 8, 2026
Merged

c-vigo merged 2 commits into
devfrom
bugfix/892-sync-extras

Conversation

@c-vigo

@c-vigo c-vigo commented Jul 8, 2026

Copy link
Copy Markdown
Contributor

Closes #892

Summary

The shipped consumer template recipe sync in assets/workspace/justfile.project forced uv sync --all-extras --all-groups. --all-extras installs every optional extra unconditionally, so repos that quarantine platform-limited dependencies (e.g. cp312/cp313-only wheels) in extras hit a hard just sync failure on the cp314 image.

This parameterizes the recipe and drops the forced --all-extras:

# before
sync:
    @if [ -f pyproject.toml ]; then uv sync --all-extras --all-groups; fi

# after
sync *args="--all-groups":
    @if [ -f pyproject.toml ]; then uv sync {{ args }}; fi

Dev groups stay synced by default; extras are now opt-in via just sync --all-extras. The update recipe (which calls just sync) uses the new default unchanged.

Changelog

Under ## Unreleased → ### Fixed (root CHANGELOG.md, mirrored to assets/workspace/.devcontainer/CHANGELOG.md by the sync-manifest hook):

  • Template sync recipe 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

c-vigo added 2 commits July 8, 2026 09:58
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
The sync recipe is now `sync *args="--all-groups":`, so tests that pinned
the literal `^sync:` / `sync:` header no longer matched. Update the #877
repair idempotency counts to `^sync[ :]` and the justfile.project recipe
presence/absence checks to the `sync ` token.

Refs: #892
@c-vigo
c-vigo merged commit f179dcb into dev Jul 8, 2026
13 checks passed
@c-vigo
c-vigo deleted the bugfix/892-sync-extras branch July 8, 2026 11:26
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