Fix bazel-skylib with Bazel@HEAD (#462)

This commit is contained in:
Yun Peng 2023-09-18 20:25:50 +02:00 committed by GitHub
parent 0171c69e5c
commit 6bf7bae2f4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 15 additions and 0 deletions

View File

@ -56,6 +56,21 @@ EOF
mkdir -p rules mkdir -p rules
cat > rules/BUILD <<EOF cat > rules/BUILD <<EOF
exports_files(["*.bzl"]) 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 EOF
ln -sf "$(rlocation $TEST_WORKSPACE/rules/analysis_test.bzl)" rules/analysis_test.bzl ln -sf "$(rlocation $TEST_WORKSPACE/rules/analysis_test.bzl)" rules/analysis_test.bzl