Skip to content

Pin uv index to PyPI so global config does not pollute lock file with alternate registry / index#236

Merged
morgan-wowk merged 1 commit into
masterfrom
uv/pin-pypi-index
May 16, 2026
Merged

Pin uv index to PyPI so global config does not pollute lock file with alternate registry / index#236
morgan-wowk merged 1 commit into
masterfrom
uv/pin-pypi-index

Conversation

@morgan-wowk
Copy link
Copy Markdown
Collaborator

@morgan-wowk morgan-wowk commented May 13, 2026

No description provided.

Shopify engineers have a global ~/.config/uv/uv.toml that injects the
internal Shopify registry as an extra-index-url. Without a project-level
override, running `uv lock` or `uv add` rewrites every package source in
uv.lock to pkgs.shopify.io, producing a large noisy diff.

Setting index-url and extra-index-url = [] in [tool.uv] takes per-field
precedence over user-level config (uv does not merge these), so the lock
file stays on PyPI regardless of the engineer's local uv configuration.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Copy link
Copy Markdown
Collaborator Author

This stack of pull requests is managed by Graphite. Learn more about stacking.

@morgan-wowk morgan-wowk changed the title Pin uv index to PyPI so Shopify global config does not pollute lock file Pin uv index to PyPI so global config does not pollute lock file with new registry May 13, 2026
@morgan-wowk morgan-wowk changed the title Pin uv index to PyPI so global config does not pollute lock file with new registry Pin uv index to PyPI so global config does not pollute lock file with alternate registry / indx May 13, 2026
@morgan-wowk morgan-wowk changed the title Pin uv index to PyPI so global config does not pollute lock file with alternate registry / indx Pin uv index to PyPI so global config does not pollute lock file with alternate registry / index May 13, 2026
@morgan-wowk morgan-wowk marked this pull request as ready for review May 13, 2026 03:13
@morgan-wowk morgan-wowk requested a review from Ark-kun as a code owner May 13, 2026 03:13
@morgan-wowk morgan-wowk merged commit 81c1d7e into master May 16, 2026
7 checks passed
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.

4 participants