File tree 2 files changed +6
-11
lines changed
test_expect_failure/transitive/java_to_scala
2 files changed +6
-11
lines changed Original file line number Diff line number Diff line change @@ -32,9 +32,10 @@ test_transitive_deps() {
32
32
exit 1
33
33
fi
34
34
35
- bazel build test_expect_failure/transitive/java_to_scala:d
36
- if [ $? -eq 0 ]; then
37
- echo " 'bazel build test_expect_failure/transitive/java_to_scala:d' should have failed."
35
+ expected_message=" error: [strict] Using type example.A from an indirect dependency"
36
+ output=$( bazel build test_expect_failure/transitive/java_to_scala:d 2>&1 )
37
+ if [ $? -eq 0 ] || [[ " $output " != * " $expected_message " * ]]; then
38
+ echo " 'bazel build test_expect_failure/transitive/java_to_scala:d' should have failed with message '$expected_message '."
38
39
exit 1
39
40
fi
40
41
Original file line number Diff line number Diff line change 1
1
load ("@rules_java//java:defs.bzl" , "java_library" )
2
- load ("//scala:scala.bzl" , "scala_export_to_java" , " scala_library" )
2
+ load ("//scala:scala.bzl" , "scala_library" )
3
3
4
4
scala_library (
5
5
name = "a" ,
6
6
srcs = ["A.scala" ],
7
7
)
8
8
9
- scala_export_to_java (
10
- name = "b" ,
11
- exports = [":a" ],
12
- runtime_deps = [],
13
- )
14
-
15
9
java_library (
16
10
name = "c" ,
17
11
srcs = ["C.java" ],
18
- deps = [":b " ],
12
+ deps = [":a " ],
19
13
)
20
14
21
15
java_library (
You can’t perform that action at this time.
0 commit comments