New Features
Incompatible Changes
Change Log
MODULE.bazel setup
bazel_dep(name = "rules_pkg", version = "1.3.0")
WORKSPACE setup
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/1.3.0/rules_pkg-1.3.0.tar.gz",
"https://github.com/bazelbuild/rules_pkg/releases/download/:rules_pkg-1.3.0/rules_pkg-1.3.0.tar.gz",
],
sha256 = "e41eca2339d1d38b824b8f7fae81ca24885f2d91011243bd1080ac85dcb9a3a3",
)
load("@rules_pkg//:deps.bzl", "rules_pkg_dependencies")
rules_pkg_dependencies()
Using the rules
See the source.
What's Changed
- feat: support raw symlinks from declare_symlink() by @rickeylev in #930
- pkg_tar: Fix #948: Don't add duplicate directory members to tar file when a symlink with the same path exists by @nickguletskii in #949
- Conditionally preserve file permissions when archiving through pkg_tar by @ronodnn in #951
- Use rules_shell in tests by @keith in #957
- Use DefaultInfo directly by @keith in #958
- [CI Fix] Stop trying the rpm debuginfo tests by @aiuto in #961
- Remove incompatible_use_toolchain_transition again, now that it has been removed from bazel by @mostynb in #963
- Add pkg_rpm() "data" attribute to provide files for rpmbuild by @wade-arista in #964
- Expose extension for Git toolchain by @guw in #967
- pkg_deb: add support for md5sums control file by @adam-azarchs in #960
- Add Alma 9 rpmbuild + bazel environment for examples by @wade-arista in #969
- Overridable
debuginfotype by @nicbadiu in #945 - Convert the compression level to a string before calling Args.add() by @EdSchouten in #975
- 📦 Conditionally preserve file mtime when archiving through pkg_tar by @ronodnn in #974
- update codeowners by @aiuto in #978
- bump version to 1.2 by @aiuto in #977
- Implement pkg_install(symlink) by @aiuto in #979
- Fix Windows file locking issue in
pkg_installby @rdesgroppes in #983 - Make
pkg_installwork without "runfiles" (Windows default) by @rdesgroppes in #984 - Implement pkg_install(symlink) also for pkg_zip by @adrianimboden in #982
- Document pkg_tar.extension's compression options. by @dougthor42 in #973
- Strip internal test fake repository for MODULE.bazel in distribution. by @aiuto in #976
- test with latest instead of rolling by @aiuto in #986
- Update pkg_deb to use ctx.action.args() for building the command line. by @aiuto in #714
- Allow for variables in the package name of pkg_deb by @AtoZdevelopment in #985
- Support compression_level when using xz by @mathukumillia in #988
- Fix distro packaging test by @aiuto in #989
- Add pkg_install.destdir_flag. by @aiuto in #990
- Generate docs for pkg_install by @aiuto in #992
- Create pre-release tests that run as a github workflow. by @aiuto in #991
- Add a release workflow. by @aiuto in #993
- Fix bcr metadata templates in main so we can test push workflow by @aiuto in #1000
- Add workflow to publish a release to the bcr. by @aiuto in #998
- fix(ci): update deprecated GH Actions (scorecard) by @rdesgroppes in #1011
- chore(deps): upgrade
skylibto remove warnings by @rdesgroppes in #1005 - fix(ci): use own
md5tool for Bazel 9 compatibility by @rdesgroppes in #1007 - Add docs for 1.2.0 by @aiuto in #1014
- fix(test): make
//distro:packaging_testwork with Bazel 9 by @rdesgroppes in #1009 - fix(rpm): debuginfo support on some distributions by @rdesgroppes in #1006
- fix(test): make
//tests:path_testwork on Windows by @rdesgroppes in #1017 - fix(test):
package_naming_aggregate_teston Windows by @rdesgroppes in #1018 - fix(pkg_install): resolve files against own repository by @rdesgroppes in #1016
- fix(test): make
//tests/mappings/filter_directorywork on Windows by @rdesgroppes in #1020 - fix(rpm): propagate main() return code as process exit code by @wade-arista in #1024
- Ensure runfiles.{,root_}symlinks makes it into tarballs by @EdSchouten in #1025
- fix: handle UTF-16LE-encoded manifests on Windows by @rdesgroppes in #1021
- Copy the providers to a module we can publish separtely from the rest by @tonyaiuto in #1027
- Bring testing for bzlmod vs. non-bzlmod up to date with bazel features by @tonyaiuto in #1029
- update docbuild to include the providers by @aiuto in #1036
- Bump rules python and rules_cc deps by @tonyaiuto in #1034
- Use filegroup rather than starlarklibrary for the sources. by @tonyaiuto in #1033
- Create release scripts for rules_pkg_providers by @tonyaiuto in #1028
- Avoid depending on the value of the --stamp flag if possible by @justinhorvitz in #1035
- drop reference to an undefined variable by @aiuto in #1040
- Handle cases with only
datadependencies inpkg_tarby @tempoz in #1044 - Support relocatable rpmbuild by adding data attribute to the toolchain by @reutermj in #1047
- Handle overriding symbolic links in pkg_install by @chouquette in #1046
- chmod +x for buildozer download. by @aiuto in #1042
- Final changes to release workflow to make submodule releases possible. by @aiuto in #1043
- add provides_file and replaces_file for dpkg_deb by @bplotnick in #1049
- fix(pkg): pkg_deb changelog argument handling by @nero19960329 in #1051
- feat: add stamp support for pkg_rpm Release tag by @wade-arista in #1039
- Add package_variables support to pkg_files and pkg_filegroup prefix by @aiuto in #1052
- [deb] Avoid
UTF-8roundtrip for{pre,post}-{inst,rm}hooks by @Yannic in #1054 - rpm_pfg: allow multiple tree artifacts at the same destination by @chouquette in #1053
- Add variable expansion to string valued attributes by @aiuto in #1056
- Honor compression level=0 in pkg_tar by @aiuto in #1059
- bump version.bzl to 1.3 by @aiuto in #1062
New Contributors
- @rickeylev made their first contribution in #930
- @nickguletskii made their first contribution in #949
- @ronodnn made their first contribution in #951
- @keith made their first contribution in #957
- @mostynb made their first contribution in #963
- @rdesgroppes made their first contribution in #983
- @adrianimboden made their first contribution in #982
- @dougthor42 made their first contribution in #973
- @AtoZdevelopment made their first contribution in #985
- @mathukumillia made their first contribution in #988
- @justinhorvitz made their first contribution in #1035
- @tempoz made their first contribution in #1044
- @reutermj made their first contribution in #1047
- @chouquette made their first contribution in #1046
- @bplotnick made their first contribution in #1049
- @nero19960329 made their first contribution in #1051
- @Yannic made their first contribution in #1054
Full Changelog: 1.1.0...1.3