forked from GoogleContainerTools/rules_distroless
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: centralize all of the deb_import functionality in deb_impor…
…t.bzl Refactor the package repo templates into their own methods and massively cleanup the `for`-loop in `_deb_package_index_impl`. IMHO overall now there's a much better and clear separation of concerns between the "deb_translate_lock" repo and the "package repos" (`apt/private/deb_import.bzl`).
- Loading branch information
Showing
6 changed files
with
100 additions
and
67 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
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
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,19 +1,28 @@ | ||
"""Generated by rules_distroless. DO NOT EDIT.""" | ||
|
||
alias( | ||
name = "data", | ||
actual = "@{repo_name}//:data", | ||
actual = {alias_data}, | ||
visibility = ["//visibility:public"], | ||
) | ||
|
||
alias( | ||
name = "control", | ||
actual = "@{repo_name}//:control", | ||
actual = {alias_control}, | ||
visibility = ["//visibility:public"], | ||
) | ||
|
||
filegroup( | ||
name = "{target_name}", | ||
name = "deps", | ||
srcs = {deps}, | ||
visibility = ["//visibility:public"], | ||
) | ||
|
||
filegroup( | ||
name = "{target_name}", | ||
srcs = [ | ||
{deps} | ||
] + [":data"] | ||
) | ||
":deps", | ||
":data", | ||
], | ||
visibility = ["//visibility:public"], | ||
) |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.