2
0
Fork 0
mirror of https://github.com/bazelbuild/bazel-skylib synced 2024-12-03 17:52:40 +00:00
bazel-skylib/tests/select_file/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

42 lines
689 B
Python

load("//rules:diff_test.bzl", "diff_test")
load("//rules:select_file.bzl", "select_file")
package(
default_applicable_licenses = ["//:license"],
default_testonly = 1,
)
licenses(["notice"])
filegroup(
name = "fg",
srcs = [
"subdir/inner.txt",
":select_me.txt",
],
)
select_file(
name = "select_me",
srcs = ":fg",
subpath = "select_me.txt",
)
select_file(
name = "select_inner",
srcs = ":fg",
subpath = "subdir/inner.txt",
)
diff_test(
name = "selected_me",
file1 = ":select_me",
file2 = ":select_me.txt",
)
diff_test(
name = "selected_inner",
file1 = ":select_inner",
file2 = "subdir/inner.txt",
)