Skip to content

Commit

Permalink
fix(sbt): init registryUrls during extract
Browse files Browse the repository at this point in the history
  • Loading branch information
rarkins committed Mar 1, 2024
1 parent b4a057c commit 4bc1295
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/modules/manager/sbt/extract.ts
Expand Up @@ -394,6 +394,7 @@ export async function extractAllPackageFiles(
}
for (const pkg of packages) {
for (const dep of pkg.deps) {
dep.registryUrls ??= [];
if (proxyUrls.length > 0) {
dep.registryUrls!.unshift(...proxyUrls);

Check failure on line 399 in lib/modules/manager/sbt/extract.ts

View workflow job for this annotation

GitHub Actions / lint-eslint

This assertion is unnecessary since it does not change the type of the expression.
} else if (dep.depType === 'plugin') {
Expand Down

0 comments on commit 4bc1295

Please sign in to comment.