aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYun Peng <pcloudy@google.com>2023-09-18 20:25:50 +0200
committerGitHub <noreply@github.com>2023-09-18 11:25:50 -0700
commit6bf7bae2f4882afcc82f48aebcd39ad467547b3c (patch)
tree2a6eafd7f696ea385aff6f051fca12ffdd855058
parent0171c69e5cc691e2d0cd9f3f3e4c3bf112370ca2 (diff)
downloadbazel-skylib-6bf7bae2f4882afcc82f48aebcd39ad467547b3c.tar.gz
Fix bazel-skylib with Bazel@HEAD (#462)
-rwxr-xr-xtests/analysis_test_test.sh15
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/analysis_test_test.sh b/tests/analysis_test_test.sh
index a265db6..5d5d7de 100755
--- a/tests/analysis_test_test.sh
+++ b/tests/analysis_test_test.sh
@@ -58,6 +58,21 @@ EOF
exports_files(["*.bzl"])
EOF
+ mkdir -p lib
+ cat > lib/BUILD <<EOF
+exports_files(["*.bzl"])
+EOF
+ cat > lib/types.bzl <<EOF
+_a_tuple_type = type(())
+
+def _is_tuple(v):
+ return type(v) == _a_tuple_type
+
+types = struct(
+ is_tuple = _is_tuple,
+)
+EOF
+
ln -sf "$(rlocation $TEST_WORKSPACE/rules/analysis_test.bzl)" rules/analysis_test.bzl
mkdir -p fakerules