Fix setup_scala_testing_toolchain() classpaths
#1707
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
Fixes #1706. Removes the addition of the Scala version suffix to
*_classpathargument labels insetup_scala_testing_toolchain().To facilitate the fix:
Moves everything from
testing/deps.bzlintotesting/testing.bzland removes the originaltesting/deps.bzlfile.Updates
repositories()fromscala/scala_cross_version.bzlto accept and returnNoneas an argument.Updates
examples/testing/multi_frameworks_toolchain/BUILDto provide a reproduction and validation of the fix.After updating
multi_frameworks_toolchain/BUILD, but before applying the fix, themulti_framework_toolchain_exampletest case broke in a similar fashion to #1706:Motivation
This was clearly a bug introduced earlier in the effort to make
rules_scalaBzlmod compatible in #1482. At the time I didn't understand the ramifications, and we didn't have tests to catch this specific case. Many thanks to @crt-31 for finding it and filing #1706 before the next major release.