Skip to content

Commit

Permalink
remove circular override hack (#1515)
Browse files Browse the repository at this point in the history
  • Loading branch information
tyler-french authored May 1, 2023
1 parent 763f8ed commit 6637ea8
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 6 deletions.
2 changes: 1 addition & 1 deletion MODULE.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ module(

bazel_dep(name = "bazel_skylib", version = "1.3.0")
bazel_dep(name = "protobuf", version = "3.19.6", repo_name = "com_google_protobuf")
bazel_dep(name = "rules_go", version = "0.38.1", repo_name = "io_bazel_rules_go")
bazel_dep(name = "rules_go", version = "0.39.1", repo_name = "io_bazel_rules_go")
bazel_dep(name = "rules_proto", version = "4.0.0")

go_sdk = use_extension("@io_bazel_rules_go//go:extensions.bzl", "go_sdk")
Expand Down
5 changes: 1 addition & 4 deletions internal/bzlmod/go_deps.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -56,10 +56,7 @@ def _report_forbidden_override(module, tag_class, attribute = None):
return message + _DIRECTIVES_CALL_TO_ACTION

def _fail_on_non_root_overrides(module, tag_class, attribute = None):
# TODO: Gazelle and the "rules_go" module depend on each other circularly.
# Tolerate overrides in the latter module until we can update it to no
# longer need them.
if module.is_root or module.name == "rules_go":
if module.is_root:
return

tags = getattr(module.tags, tag_class)
Expand Down
2 changes: 1 addition & 1 deletion tests/bcr/MODULE.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ local_path_override(
path = "../..",
)

bazel_dep(name = "rules_go", version = "0.38.1")
bazel_dep(name = "rules_go", version = "0.39.1")

go_deps = use_extension("@gazelle//:extensions.bzl", "go_deps")

Expand Down

0 comments on commit 6637ea8

Please sign in to comment.