From 141ad273a20ccebfa3fc1562e30000e8416f38ff Mon Sep 17 00:00:00 2001 From: Eric Astor Date: Wed, 4 Oct 2023 18:51:02 +0000 Subject: [PATCH] Fix vendoring test for Bazel 5.4.x compatibility --- dependency_support/BUILD.bazel | 3 +++ 1 file changed, 3 insertions(+) diff --git a/dependency_support/BUILD.bazel b/dependency_support/BUILD.bazel index 6d51f7b2..ef6e1aa9 100644 --- a/dependency_support/BUILD.bazel +++ b/dependency_support/BUILD.bazel @@ -24,6 +24,9 @@ genrule( outs = ["requirements.clean.bzl"], cmd = " | ".join([ "cat $<", + # Replace the bazel 6.0.0 specific comment with something that bazel 5.4.0 would produce. + # This enables this example to be run as a test under bazel 5.4.0. + """sed -e 's#@rules_hdl//#@//#'""", ]) + " >$@", )