2
0
Fork 0
mirror of https://github.com/bazelbuild/bazel-skylib synced 2024-11-28 08:43:51 +00:00
bazel-skylib/tests/bzl_library/BUILD
Alexandre Rostovtsev 0d43695bd5
Re-add licenses() - internal license checker still requires it :/ (#506)
And take the opportunity to fix default_applicable_licenses in the gazelle plugin
2024-05-02 14:38:05 -04:00

40 lines
677 B
Python

load("//:bzl_library.bzl", "bzl_library")
load(":bzl_library_test.bzl", "bzl_library_test")
package(
default_applicable_licenses = ["//:license"],
default_testonly = 1,
)
licenses(["notice"])
filegroup(
name = "a",
srcs = ["testdata/a.bzl"],
)
bzl_library(
name = "b",
srcs = ["testdata/b.bzl"],
)
bzl_library(
name = "c",
srcs = ["testdata/c.bzl"],
deps = [
":a",
":b",
],
)
bzl_library_test(
name = "bzl_library_test",
expected_srcs = ["testdata/c.bzl"],
expected_transitive_srcs = [
"testdata/a.bzl",
"testdata/b.bzl",
"testdata/c.bzl",
],
target_under_test = ":c",
)