Skip to content

Commit d389551

Browse files
committed
Hide --registry flags behind a config
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.
1 parent 853d140 commit d389551

File tree

6 files changed

+9
-5
lines changed

6 files changed

+9
-5
lines changed

.bazelrc.bzlmod

+2-1
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,5 @@ common --noenable_bzlmod
33

44
common:bzlmod --enable_bzlmod
55
# Note, have to use /// to make Bazel not crash on Windows
6-
common --registry=file:///%workspace%/registry --registry=https://bcr.bazel.build
6+
common:common --registry=file:///%workspace%/registry --registry=https://bcr.bazel.build
7+

.bazelrc.common

+3
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@
33
# Global Configuration
44
# --------------------
55

6+
# enable common config by default (needed for renovate to ignore the file: registry)
7+
common --config common
8+
69
# Force TLS 1.2. With TLS 1.3, we run into the following error on Darwin.
710
# > No subject alternative DNS name matching github-releases.githubusercontent.com found.
811
# It looks like this is a result of SNI being broken on TLS 1.3 which results

examples/.bazelrc.bzlmod

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
common:bzlmod --enable_bzlmod
2-
common --registry=file://%workspace%/../registry --registry=https://bcr.bazel.build
2+
common:common --registry=file://%workspace%/../registry --registry=https://bcr.bazel.build

rules_haskell_nix/.bazelrc.bzlmod

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
common:bzlmod --enable_bzlmod
22

33
# Note, have to use /// to make Bazel not crash on Windows
4-
common --registry=file:///%workspace%/../registry --registry=https://bcr.bazel.build
4+
common:common --registry=file:///%workspace%/../registry --registry=https://bcr.bazel.build

rules_haskell_tests/.bazelrc.bzlmod

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@ common --noenable_bzlmod
44
common:bzlmod --enable_bzlmod
55

66
# Note, have to use /// to make Bazel not crash on Windows
7-
common --registry=file:///%workspace%/../registry --registry=https://bcr.bazel.build
7+
common:common --registry=file:///%workspace%/../registry --registry=https://bcr.bazel.build

tutorial/.bazelrc.bzlmod

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
common:bzlmod --enable_bzlmod
2-
common --registry=file://%workspace%/../registry --registry=https://bcr.bazel.build
2+
common:common --registry=file://%workspace%/../registry --registry=https://bcr.bazel.build

0 commit comments

Comments
 (0)