Skip to content

Commit 04cdd68

Browse files
fmeumalexeagle
authored andcommitted
Use a valid repo name in is_bzlmod_enabled
Invalid repo names lead to repo rule invalidation. Fixes #1183
1 parent 987026f commit 04cdd68

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/private/utils.bzl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ def _is_bazel_7_or_greater():
239239

240240
def is_bzlmod_enabled():
241241
"""Detect the value of the --enable_bzlmod flag"""
242-
return str(Label("@//:BUILD.bazel")).startswith("@@")
242+
return str(Label("//:BUILD.bazel")).startswith("@@")
243243

244244
def _maybe_http_archive(**kwargs):
245245
"""Adapts a maybe(http_archive, ...) to look like an http_archive.

0 commit comments

Comments
 (0)