Skip to content

Commit f31e867

Browse files
katrecopybara-github
authored andcommitted
Update platforms_test to not rely on filegroup not using toolchain
resolution. Part of work on bazelbuild#12899. Closes bazelbuild#12906. PiperOrigin-RevId: 353936927
1 parent b723a85 commit f31e867

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/test/shell/bazel/platforms_test.sh

+3-1
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,9 @@ EOF
7878
mkdir -p override || fail "couldn't create override directory"
7979
touch override/WORKSPACE || fail "couldn't touch override/WORKSPACE"
8080
cat > override/BUILD <<EOF
81-
filegroup(name = 'yolo')
81+
# Have to use a rule that doesn't require a target platform, or else there will
82+
# be a cycle.
83+
toolchain_type(name = 'yolo')
8284
EOF
8385

8486
cd platforms_can_be_overridden || fail "couldn't cd into workspace"

0 commit comments

Comments
 (0)