Skip to content

Commit

Permalink
fix(manager/uv): handle unnamed index
Browse files Browse the repository at this point in the history
  • Loading branch information
mkniewallner committed Feb 22, 2025
1 parent 93216f9 commit e2c4617
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions lib/modules/manager/pep621/processors/uv.ts
Original file line number Diff line number Diff line change
Expand Up @@ -339,6 +339,11 @@ async function getUvIndexCredentials(
const entries = [];

for (const { name, url } of uv_indexes) {
// istanbul ignore if
if (!name) {
continue;
}

const parsedUrl = parseUrl(url);
// istanbul ignore if
if (!parsedUrl) {
Expand Down
2 changes: 1 addition & 1 deletion lib/modules/manager/pep621/schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ const UvSchema = z.object({
index: z
.array(
z.object({
name: z.string(),
name: z.string().optional(),
url: z.string(),
default: z.boolean().default(false),
explicit: z.boolean().default(false),
Expand Down

0 comments on commit e2c4617

Please sign in to comment.