Skip to content

1.2.0

Latest

Choose a tag to compare

@github-actions github-actions released this 03 Dec 19:25
· 15 commits to main since this release
074a0c5

New Features

  • pkg_deb: add support for md5sums control file
  • pkg_deb: Allow for variables in the package name
  • pkg_deb: Overridable debuginfo type
  • pkg_install: Add destdir_flag to pick up destdir from a bazel-skylib.string_flag().
  • pkg_install: support for symlinks
  • pkg_mklink: support raw symlinks from declare_symlink() (Bazel 8+ only)
  • pkg_rpm: "data" attribute to provide files for rpmbuild b
  • pkg_tar: Conditionally preserve file mtime
  • pkg_tar: Support compression_level when using xz
  • pkg_zip: support synlinks

Incompatible Changes

MODULE.bazel setup

bazel_dep(name = "rules_pkg", version = "1.2.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.2.0/rules_pkg-1.2.0.tar.gz",
        "https://github.com/bazelbuild/rules_pkg/releases/download/1.2.0/rules_pkg-1.2.0.tar.gz",
    ],
    sha256 = "b5c9184a23bb0bcff241981fd9d9e2a97638a1374c9953bb1808836ce711f990",
)
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 debuginfo type 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_install by @rdesgroppes in #983
  • Make pkg_install work 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

New Contributors

Full Changelog: 1.1.0...1.2.0