Skip to content

Commit

Permalink
Fix bazel-skylib with Bazel@HEAD (#462)
Browse files Browse the repository at this point in the history
  • Loading branch information
meteorcloudy authored Sep 18, 2023
1 parent 0171c69 commit 6bf7bae
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions tests/analysis_test_test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,21 @@ EOF
mkdir -p rules
cat > rules/BUILD <<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
Expand Down

0 comments on commit 6bf7bae

Please sign in to comment.