-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add more convenience targets (#121)
Mirror the "inner" (per-arch) :data and :control convenience targets to platform-aware targets at the top of the package repo so that we can use `@<REPO>//<PACKAGE>:data` directly (see changes to examples/debian_snapshot/BUILD).
- Loading branch information
Showing
4 changed files
with
25 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,19 @@ | ||
"""Generated by rules_distroless. DO NOT EDIT.""" | ||
|
||
alias( | ||
name = "data", | ||
actual = "@{repo_name}//:data", | ||
actual = {data_targets}, | ||
visibility = ["//visibility:public"], | ||
) | ||
|
||
alias( | ||
name = "control", | ||
actual = "@{repo_name}//:control", | ||
actual = {control_targets}, | ||
visibility = ["//visibility:public"], | ||
) | ||
|
||
filegroup( | ||
name = "{target_name}", | ||
srcs = {deps} + [":data"], | ||
visibility = ["//visibility:public"], | ||
srcs = {deps} + [":data"] | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters