Skip to content
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

Add RunfilesLibraryInfo provider #16077

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
1 change: 1 addition & 0 deletions tools/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ filegroup(
"//tools/jdk:bzl_srcs",
"//tools/osx:bzl_srcs",
"//tools/python:bzl_srcs",
"//tools/runfiles:bzl_srcs",
"//tools/sh:bzl_srcs",
"//tools/test:bzl_srcs",
"//tools/windows:bzl_srcs",
Expand Down
5 changes: 4 additions & 1 deletion tools/runfiles/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ filegroup(

filegroup(
name = "embedded_tools",
srcs = ["BUILD.tools"],
srcs = [
"BUILD.tools",
"runfiles.bzl",
],
visibility = ["//tools:__pkg__"],
)
8 changes: 7 additions & 1 deletion tools/runfiles/BUILD.tools
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
package(default_visibility = ["//visibility:private"])

java_library(
name = "java-runfiles",
deprecation = "Depend on @bazel_tools//tools/java/runfiles instead. This target will be deleted in Bazel 0.19.0",
visibility = ["//visibility:public"],
exports = ["//tools/java/runfiles"],
)

filegroup(
name = "bzl_srcs",
srcs = ["runfiles.bzl"],
)
9 changes: 9 additions & 0 deletions tools/runfiles/runfiles.bzl
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
RunfilesLibraryInfo = provider(
doc = """
A marker for targets providing runfiles lookup functionality.

Rules may choose to emit additional information required to locate runfiles at runtime if this provider is present on a direct dependency.

Note: At this point, neither Bazel nor native rules check for the presence of this provider.
""",
)