Skip to content

Commit

Permalink
Stop testing the ability to set licenses and distribs on a package le…
Browse files Browse the repository at this point in the history
…vel. (bazelbuild#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.
  • Loading branch information
aiuto authored and apattidb committed May 10, 2024
1 parent cc3d358 commit 3ac4fee
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 21 deletions.
20 changes: 0 additions & 20 deletions buildozer/buildozer_test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -1007,26 +1007,6 @@ function test_set_int() {
)'
}

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")'

Expand Down
1 change: 0 additions & 1 deletion warn/warn_bazel.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ import (
)

var functionsWithPositionalArguments = map[string]bool{
"distribs": true,
"exports_files": true,
"licenses": true,
"print": true,
Expand Down

0 comments on commit 3ac4fee

Please sign in to comment.