Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(manager/uv): handle unnamed index #34387

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

mkniewallner
Copy link
Contributor

@mkniewallner mkniewallner commented Feb 22, 2025

Changes

Make name optional for uv indexes, per https://docs.astral.sh/uv/configuration/indexes/#defining-an-index.

Context

Documentation (please check one with an [x])

  • I have updated the documentation, or
  • No documentation update is required

How I've tested my work (please select one)

I have verified these changes via:

  • Code inspection only, or
  • Newly added/modified unit tests, or
  • No unit tests but ran on a real repository, or
  • Both unit tests + ran on a real repository

@mkniewallner mkniewallner marked this pull request as draft February 22, 2025 12:58
@mkniewallner mkniewallner force-pushed the fix/handle-uv-unnamed-index branch from ccd723b to e2c4617 Compare February 22, 2025 13:05
@@ -339,6 +339,11 @@ async function getUvIndexCredentials(
const entries = [];

for (const { name, url } of uv_indexes) {
// istanbul ignore if
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Already covered by type-checking.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

no, add a test

@mkniewallner mkniewallner marked this pull request as ready for review February 22, 2025 13:09
@@ -339,6 +339,11 @@ async function getUvIndexCredentials(
const entries = [];

for (const { name, url } of uv_indexes) {
// istanbul ignore if
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

no, add a test

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.

pep621 manager: name is optional under tool.uv.index, but Renovate considers it required
2 participants