Skip to content

Conversation

@avdv
Copy link
Member

@avdv avdv commented Nov 7, 2023

Renovate scans for registry URLs in .bazelrc files and tries to use all of them, but it does not support file: URLs and fails:

WARN: Host error (repository=tweag/rules_haskell)
       "hostType": "bazel",
       "packageName": "rules_haskell",
       "err": {
         "name": "UnsupportedProtocolError",
         "code": "ERR_UNSUPPORTED_PROTOCOL",
         "message": "Unsupported protocol \"file:\"",
         "stack": "UnsupportedProtocolError: Unsupported protocol \"file:\"\n    at normalizeArguments (/opt/containerbase/tools/renovate/37.49.3/node_modules/got/dist/source/core/index.js:521:23)\n    at got (/opt/containerbase/tools/renovate/37.49.3/node_modules/got/dist/source/create.js:112:39)\n    at gotTask (/opt/containerbase/tools/renovate/37.49.3/node_modules/renovate/lib/util/http/index.ts:96:27)\n    at httpTask (/opt/containerbase/tools/renovate/37.49.3/node_modules/renovate/lib/util/http/index.ts:208:16)\n    at Http.request (/opt/containerbase/tools/renovate/37.49.3/node_modules/renovate/lib/util/http/index.ts:225:20)\n    at Http.requestJson (/opt/containerbase/tools/renovate/37.49.3/node_modules/renovate/lib/util/http/index.ts:290:28)\n    at Http.getJson (/opt/containerbase/tools/renovate/37.49.3/node_modules/renovate/lib/util/http/index.ts:351:17)\n    at BazelDatasource.getReleases (/opt/containerbase/tools/renovate/37.49.3/node_modules/renovate/lib/modules/datasource/bazel/index.ts:44:50)\n    at callback (/opt/containerbase/tools/renovate/37.49.3/node_modules/renovate/lib/util/decorator/index.ts:55:34)\n    at /opt/containerbase/tools/renovate/37.49.3/node_modules/renovate/lib/util/cache/package/decorator.ts:119:24\n    at getRegistryReleases (/opt/containerbase/tools/renovate/37.49.3/node_modules/renovate/lib/modules/datasource/index.ts:77:15)\n    at huntRegistries (/opt/containerbase/tools/renovate/37.49.3/node_modules/renovate/lib/modules/datasource/index.ts:118:13)\n    at fetchReleases (/opt/containerbase/tools/renovate/37.49.3/node_modules/renovate/lib/modules/datasource/index.ts:291:15)",
         "options": {

However, it ignores any --registry values associated with a configuration.

So introduce a common configuration which is always enabled, but causes renovate to skip the --registry values.

Renovate scans for registry URLs in .bazelrc files and tries to use all of them, but it
does not support file: URLs and fails. However, it ignores any `--registry` values associated
with a configuration.

So introduce a `common` configuration which is always enabled, but causes renovate to
skip the `--registry` values.
@avdv avdv force-pushed the hide-registry-behind-config branch from 9ab731b to d389551 Compare November 7, 2023 08:42
Copy link
Member

@aherrmann aherrmann left a comment

Choose a reason for hiding this comment

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

it does not support file: URLs and fails:

Is there an upstream issue for this? This would be nice to see fixed in renovate eventually.

@avdv
Copy link
Member Author

avdv commented Nov 7, 2023

Is there an upstream issue for this? This would be nice to see fixed in renovate eventually.

Yes, I started a discussion (it's the way they handle issues): renovatebot/renovate#25624

@avdv avdv added the merge-queue merge on green CI label Nov 7, 2023
@mergify mergify bot merged commit 2ccda50 into master Nov 7, 2023
@mergify mergify bot deleted the hide-registry-behind-config branch November 7, 2023 09:33
@mergify mergify bot removed the merge-queue merge on green CI label Nov 7, 2023
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.

3 participants