Stop testing the ability to set licenses and distribs on a package level. (#1261)
The `distribs` and `licenses` features are being removed from Bazel.
Both are obsolete in the `package()` rule.
`distribs` as a top level function will be removed ina near release of
Bazel.
diff --git a/buildozer/buildozer_test.sh b/buildozer/buildozer_test.sh
index 0f71b75..666d4b9 100755
--- a/buildozer/buildozer_test.sh
+++ b/buildozer/buildozer_test.sh
@@ -1007,26 +1007,6 @@
)'
}
-function test_set_licenses() {
- in='cc_test(name = "a")'
-
- run "$in" 'set licenses foo' '//pkg:a'
- assert_equals 'cc_test(
- name = "a",
- licenses = ["foo"],
-)'
-}
-
-function test_set_distribs() {
- in='cc_test(name = "a")'
-
- run "$in" 'set distribs foo' '//pkg:a'
- assert_equals 'cc_test(
- name = "a",
- distribs = ["foo"],
-)'
-}
-
function test_set_if_absent_absent() {
in='soy_js(name = "a")'
diff --git a/warn/warn_bazel.go b/warn/warn_bazel.go
index c7a3fc6..cd67c35 100644
--- a/warn/warn_bazel.go
+++ b/warn/warn_bazel.go
@@ -26,7 +26,6 @@
)
var functionsWithPositionalArguments = map[string]bool{
- "distribs": true,
"exports_files": true,
"licenses": true,
"print": true,