commit | c55d4b0eb6ab2166b63407885d1f0ab504ae964c | [log] [tgz] |
---|---|---|
author | HONG Yifan <[email protected]> | Wed Aug 28 13:22:53 2024 -0700 |
committer | HONG Yifan <[email protected]> | Wed Aug 28 13:23:28 2024 -0700 |
tree | ff0382b606ff284a465fb620254e4cae9c25b734 | |
parent | 632ab98c81cf295750dc096142d4ca76264084bc [diff] | |
parent | 4afd0b3ccd8379af11f67f7ddff525fd1a9c5834 [diff] |
Upgrade rules_pkg to 4afd0b3ccd8379af11f67f7ddff525fd1a9c5834 This project was upgraded with external_updater. Usage: tools/external_updater/updater.sh update external/bazelbuild-rules_pkg For more info, check https://cs.android.com/android/platform/superproject/main/+/main:tools/external_updater/README.md This updates rules_pkg from 0.10.1 to ToT. See list of changes here: https://github.com/bazelbuild/rules_pkg/compare/0.10.1...4afd0b3ccd8379af11f67f7ddff525fd1a9c5834 In particular, we use ToT so pkg_install has the latest changes to replace copy_to_dist_dir(). Bug: 331730853 Test: TreeHugger Change-Id: I2f5c435df91da759c7262a38ed5c14dcdee1a33f
Bazel rules for building tar, zip, deb, and rpm for packages.
For the latest version, see Releases (with WORKSPACE
setup) / Documentation
Use [email protected] for discussion.
As of Bazel 4.x, Bazel uses this rule set for packaging its distribution. Bazel still contains a limited version of pkg_tar
but its feature set is frozen. Any new capabilities will be added here.
Sample, but see releases for the current release.
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") http_archive( name = "rules_pkg", urls = [ "https://mirror.bazel.build/github.com/bazelbuild/rules_pkg/releases/download/0.9.1/rules_pkg-0.9.1.tar.gz", "https://github.com/bazelbuild/rules_pkg/releases/download/0.9.1/rules_pkg-0.9.1.tar.gz", ], sha256 = "8f9ee2dc10c1ae514ee599a8b42ed99fa262b757058f65ad3c384289ff70c4b8", ) load("@rules_pkg//:deps.bzl", "rules_pkg_dependencies") rules_pkg_dependencies()
To use pkg_rpm()
, you must provide a copy of rpmbuild
. You can use the system installed rpmbuild
with this stanza.
load("@rules_pkg//toolchains/rpm:rpmbuild_configure.bzl", "find_system_rpmbuild") find_system_rpmbuild( name = "rules_pkg_rpmbuild", verbose = False, )
bazel_dep(name = "rules_pkg", version = "0.0.10")
To use pkg_rpm()
, you must provide a copy of rpmbuild
. You can use the system installed rpmbuild
with this stanza.
find_rpm = use_extension("//toolchains/rpm:rpmbuild_configure.bzl", "find_system_rpmbuild_bzlmod") use_repo(find_rpm, "rules_pkg_rpmbuild") register_toolchains("@rules_pkg_rpmbuild//:all")
We hold an engineering status meeting on the first Monday of every month at 10am USA East coast time. Add to calendar / meeting notes