Skip to content

Commit

Permalink
fix(datasource/custom): fix local registry path (#26142)
Browse files Browse the repository at this point in the history
  • Loading branch information
nSimonFR committed Dec 5, 2023
1 parent 572fb34 commit 540ad4f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/modules/datasource/custom/index.ts
Expand Up @@ -32,7 +32,9 @@ export class CustomDatasource extends Datasource {
let data: unknown;
try {
if (isLocalRegistry) {
data = await fetcher.readFile(defaultRegistryUrlTemplate);
data = await fetcher.readFile(
defaultRegistryUrlTemplate.replace('file://', ''),
);
} else {
data = await fetcher.fetch(this.http, defaultRegistryUrlTemplate);
}
Expand Down

0 comments on commit 540ad4f

Please sign in to comment.