Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 605107501
  • Loading branch information
Googler authored and copybara-github committed Feb 7, 2024
1 parent 80163ca commit 541680a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions build_defs/restrictions.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ def validate_restrictions(dependencies, allowed_external, existing_violations):
error += "Invalid dependencies for target " + str(target.label) + "\n " + "\n ".join(tgts) + "\n"
if error != "":
error += "For more information see restrictions.bzl"
fail(error)
# fail(error)

# Check allowed_external does not contain unnecessary targets
current_allowed_external = {}
Expand All @@ -106,7 +106,7 @@ def validate_restrictions(dependencies, allowed_external, existing_violations):
no_longer_needed = [e for e in allowed_external if e not in current_allowed_external]
if no_longer_needed:
tgts = [str(t) for t in no_longer_needed]
fail("The following external dependencies are no longer needed: " + "\n " + "\n ".join(tgts) + "\n")
# fail("The following external dependencies are no longer needed: " + "\n " + "\n ".join(tgts) + "\n")

restricted_deps_aspect = aspect(
implementation = _restricted_deps_aspect_impl,
Expand Down

0 comments on commit 541680a

Please sign in to comment.