Commit cd1bf15
authored
Fix
* Fix `setup_scala_testing_toolchain()` classpaths
Fixes bazel-contrib#1706. Removes the addition of the Scala version suffix to
`*_classpath` argument labels in `setup_scala_testing_toolchain()`.
To facilitate the fix:
- Moves everything from `testing/deps.bzl` into `testing/testing.bzl`
and removes the original `testing/deps.bzl` file.
- Updates `repositories()` from `scala/scala_cross_version.bzl` to
accept and return `None` as an argument.
- Updates `examples/testing/multi_frameworks_toolchain/BUILD` to provide
a reproduction and validation of the fix.
After updating `multi_frameworks_toolchain/BUILD`, but before applying
the fix, the `multi_framework_toolchain_example` test case broke in a
similar fashion to bazel-contrib#1706:
```txt
$ RULES_SCALA_TEST_ONLY=multi_framework_toolchain_example \
./test_examples.sh
running test multi_framework_toolchain_example
ERROR: .../examples/testing/multi_frameworks_toolchain/BUILD:19:30:
no such package '@io_bazel_rules_scala_org_specs2_specs2_fp_2_12_20_2_12_20//':
The repository '@io_bazel_rules_scala_org_specs2_specs2_fp_2_12_20_2_12_20'
could not be resolved:
Repository '@io_bazel_rules_scala_org_specs2_specs2_fp_2_12_20_2_12_20'
is not defined and referenced by '//:testing_toolchain_specs2_classpath_provider'
ERROR: Analysis of target
'//:testing_toolchain_specs2_classpath_provider' failed;
build aborted:
Analysis failed
INFO: Elapsed time: 0.159s
INFO: 0 processes.
ERROR: Couldn't start the build. Unable to run tests
```
* Fix `repositories()` docstring grammatical errorsetup_scala_testing_toolchain() classpaths (bazel-contrib#1707)1 parent 78e860f commit cd1bf15
File tree
5 files changed
+96
-55
lines changed- examples/testing/multi_frameworks_toolchain
- scala
- testing
5 files changed
+96
-55
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
1 | 2 | | |
2 | 3 | | |
3 | 4 | | |
4 | 5 | | |
| 6 | + | |
5 | 7 | | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
6 | 19 | | |
7 | 20 | | |
8 | | - | |
9 | | - | |
10 | | - | |
11 | | - | |
12 | | - | |
13 | | - | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | | - | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
35 | 60 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
53 | 53 | | |
54 | 54 | | |
55 | 55 | | |
56 | | - | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
57 | 72 | | |
58 | 73 | | |
59 | 74 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
155 | 155 | | |
156 | 156 | | |
157 | 157 | | |
158 | | - | |
159 | 158 | | |
160 | | - | |
161 | | - | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
162 | 162 | | |
163 | 163 | | |
164 | 164 | | |
| 165 | + | |
165 | 166 | | |
166 | 167 | | |
167 | 168 | | |
| |||
170 | 171 | | |
171 | 172 | | |
172 | 173 | | |
173 | | - | |
174 | | - | |
175 | | - | |
176 | | - | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
177 | 178 | | |
178 | 179 | | |
179 | 180 | | |
| |||
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
1 | 2 | | |
2 | | - | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
3 | 7 | | |
4 | 8 | | |
5 | 9 | | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
6 | 21 | | |
7 | 22 | | |
8 | 23 | | |
| |||
35 | 50 | | |
36 | 51 | | |
37 | 52 | | |
38 | | - | |
| 53 | + | |
39 | 54 | | |
40 | 55 | | |
41 | 56 | | |
| |||
45 | 60 | | |
46 | 61 | | |
47 | 62 | | |
48 | | - | |
| 63 | + | |
49 | 64 | | |
50 | 65 | | |
51 | 66 | | |
| |||
55 | 70 | | |
56 | 71 | | |
57 | 72 | | |
58 | | - | |
| 73 | + | |
59 | 74 | | |
60 | 75 | | |
61 | 76 | | |
| |||
65 | 80 | | |
66 | 81 | | |
67 | 82 | | |
68 | | - | |
| 83 | + | |
69 | 84 | | |
70 | 85 | | |
71 | 86 | | |
| |||
0 commit comments