Skip to content

fix: handle uv extra== conflict markers in uv_project select() generation#1104

Draft
xangcastle wants to merge 1 commit into
1.xfrom
fix/uv-project-select-default
Draft

fix: handle uv extra== conflict markers in uv_project select() generation#1104
xangcastle wants to merge 1 commit into
1.xfrom
fix/uv-project-select-default

Conversation

@xangcastle

Copy link
Copy Markdown
Member

When a [dependency-groups] entry acts as a shared group referencing a package that has conflicting versions across other groups, uv encodes the ambiguity in the lock file using synthetic extra == 'group-24-...' markers. These markers are uv-internal routing hints, not real PEP 508 environment markers, so they can't be evaluated as Bazel config_setting targets at build time.

The old code passed them straight into _conditionalize, which tried to create a decide_marker target for each one, causing hub analysis to fail entirely whenever a project used this lock file pattern.

The fix detects these pseudo-markers via _has_extra_marker and treats them as unconditional (//conditions:default), which is correct because the per-venv select() layer already handles group routing; the extra markers are just uv's way of annotating which version belongs to which conflict group in the lock file.


Changes are visible to end-users: no

Test plan

  • New test cases added

@aspect-workflows

aspect-workflows Bot commented Jun 11, 2026

Copy link
Copy Markdown

✨ Aspect Workflows Tasks

📅 Thu Jun 11 13:15:21 UTC 2026

❌ 2 failed tasks

  • ❌ test (test-e2e-bazel-8) · ⏱ 20.9s · 🐙 GitHub Actions · ☑️ Check
    💬 failed in test · Bazel test failed
  • ❌ test (test-e2e-bazel-9) · ⏱ 22.7s · 🐙 GitHub Actions · ☑️ Check
    💬 failed in test · Bazel test failed

✅ 5 successful tasks

  • ✅ buildifier · ⏱ 27.6s · 🐙 GitHub Actions · ☑️ Check
    💬 Format complete (clean)
  • ✅ gazelle · ⏱ 24.8s · 🐙 GitHub Actions · ☑️ Check
    💬 Gazelle complete (clean)
  • ✅ test (test-examples-uv_pip_compile-bazel-8) · ⏱ 28s · 🐙 GitHub Actions · ☑️ Check
    💬 Bazel test complete (1/1 passed · 1 cached)
  • ✅ test (test-root-bazel-8) · ⏱ 36m 53s · 🐙 GitHub Actions · ☑️ Check
    💬 Bazel test complete (123/123 passed)
  • ✅ test (test-root-bazel-9) · ⏱ 37m 10s · 🐙 GitHub Actions · ☑️ Check
    💬 Bazel test complete (122/122 passed)

🔁 Reproduce

❌ test (test-e2e-bazel-8 · test-e2e-bazel-9)

aspect test -- //...
# without Aspect CLI
bazel test -- //...

Install aspect: docs.aspect.build/cli/install


⏱ Last updated Thu Jun 11 13:52:26 UTC 2026 · 📊 GitHub API quota 715/15,000 (5% used, resets in 19m, throttle 3×)
🚀 Powered by Aspect CLI (v2026.22.44)  |  Aspect Build · X · LinkedIn · YouTube

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