Skip to content

Commit

Permalink
Update platforms_test to not rely on filegroup not using toolchain
Browse files Browse the repository at this point in the history
resolution.

Part of work on bazelbuild#12899.

Closes bazelbuild#12906.

PiperOrigin-RevId: 353936927
  • Loading branch information
katre authored and Copybara-Service committed Jan 26, 2021
1 parent b723a85 commit f31e867
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/test/shell/bazel/platforms_test.sh
Expand Up @@ -78,7 +78,9 @@ EOF
mkdir -p override || fail "couldn't create override directory"
touch override/WORKSPACE || fail "couldn't touch override/WORKSPACE"
cat > override/BUILD <<EOF
filegroup(name = 'yolo')
# Have to use a rule that doesn't require a target platform, or else there will
# be a cycle.
toolchain_type(name = 'yolo')
EOF

cd platforms_can_be_overridden || fail "couldn't cd into workspace"
Expand Down

0 comments on commit f31e867

Please sign in to comment.