Skip to content

Remove the deprecated attribute proto_source_root. #793

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 11 commits into from
Aug 7, 2019
5 changes: 2 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,9 @@ env:
# See https://github.com/bazelbuild/rules_scala/pull/622
# we want to test the last release
#- V=0.16.1 TEST_SCRIPT=test_lint.sh
- V=0.23.1 TEST_SCRIPT=test_rules_scala
- V=0.28.0 TEST_SCRIPT=test_rules_scala
#- V=0.14.1 TEST_SCRIPT=test_intellij_aspect.sh
- V=0.23.1 TEST_SCRIPT=test_reproducibility
#- V=0.14.1 TEST_SCRIPT=test_intellij_aspect.sh
- V=0.28.0 TEST_SCRIPT=test_reproducibility


before_install:
Expand Down
9 changes: 4 additions & 5 deletions test/proto/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -82,19 +82,19 @@ scalapb_proto_library(

# Test that the `proto_source_root` attribute is handled properly
proto_library(
name = "proto_source_root",
name = "strip_import_prefix",
srcs = [
"different_root.proto",
"different_root2.proto",
],
proto_source_root = package_name(),
strip_import_prefix = "",
visibility = ["//visibility:public"],
)

scalapb_proto_library(
name = "test_proto_source_root",
name = "test_strip_import_prefix",
visibility = ["//visibility:public"],
deps = [":proto_source_root"],
deps = [":strip_import_prefix"],
)

proto_library(
Expand Down Expand Up @@ -158,7 +158,6 @@ scala_test(
],
)


scala_test(
name = "test_custom_object_exists",
srcs = [
Expand Down
2 changes: 1 addition & 1 deletion test_expect_failure/proto_source_root/dependency/BUILD
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
proto_library(
name = "dependency",
srcs = glob(["*.proto"]),
proto_source_root = package_name(),
strip_import_prefix = "",
visibility = ["//visibility:public"],
)
2 changes: 1 addition & 1 deletion test_expect_failure/proto_source_root/user/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ load(
proto_library(
name = "user",
srcs = glob(["*.proto"]),
proto_source_root = package_name(),
strip_import_prefix = "",
deps = ["//test_expect_failure/proto_source_root/dependency"],
)

Expand Down