Skip to content

Conversation

@MarthinusBosman
Copy link

@MarthinusBosman MarthinusBosman commented Nov 15, 2025

Summary

Ensure environment credentials take precedence when resolving private registry credentials. When both an index URL and environment variables (e.g. UV_INDEX_PRIVATE_REGISTRY_USERNAME / UV_INDEX_PRIVATE_REGISTRY_PASSWORD) provide credentials, prefer the environment variables and avoid overwriting cached credentials with URL-derived username. Adds unit tests for the precedence behavior and updates docs/references. Closes #16733.

Test Plan

  • Added unit tests that assert env username/password override credentials derived from an index URL.
  • Ran cargo nextest run locally; all tests pass.

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.

Issue with private registry username

1 participant