Skip to content

Commit 5b2cc60

Browse files
Enable --experimental_enable_aspect_hints like we do in rules_swift (#2465)
This was recently enabled in rules_swift (with bazelbuild/rules_swift#1191) and it seems to be required in the next `rules_swift` bump. I saw the failure initially when testing a rules_swift bump in #2418 which was [failing](https://buildkite.com/bazel/rules-apple-darwin/builds/9191#018fdd69-abfb-451a-a454-4b0771e26b77) with the following error only in the Bazel 6.x configuration as expected (since it's enabled by default on Bazel 7): ``` Error: No attribute 'aspect_hints' in attr. Make sure you declared a rule attribute with this name. ```
1 parent 0b31b87 commit 5b2cc60

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

.bazelrc

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,12 @@ build --nocheck_visibility
2121
# dependencies cause us to use a newer version
2222
build --check_direct_dependencies=off
2323

24+
# This is needed for Bazel 6 compatibility.
25+
# It's enabled (and can't be disabled) in Bazel 7.
26+
# TODO: Remove this once we drop Bazel 6 support.
27+
# See also: https://github.com/bazelbuild/bazel/issues/14327
28+
build --experimental_enable_aspect_hints
29+
2430
# Disable the worker, which has sandboxing disabled by default, which can hide
2531
# issues with non-hermetic bugs.
2632
build --spawn_strategy=sandboxed,local

0 commit comments

Comments
 (0)