Skip to content

0.6.0

Compare
Choose a tag to compare
@aiuto aiuto released this 24 Jan 20:14
· 246 commits to main since this release
4fa18d1

This release incorporates several months of internal restructuring and cleanup. It is a baseline for a set of 0.6.x releases which will drop new features and bug fixes.

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/0.6.0/rules_pkg-0.6.0.tar.gz",
        "https://github.com/bazelbuild/rules_pkg/releases/download/0.6.0/rules_pkg-0.6.0.tar.gz",
    ],
    sha256 = "62eeb544ff1ef41d786e329e1536c1d541bb9bcad27ae984d57f18f314018e66",
)
load("@rules_pkg//:deps.bzl", "rules_pkg_dependencies")
rules_pkg_dependencies()

Using the rules

See the documentation.

New Features

  • Rules are now available under the common naming convention of @rules_pkg/pkg:pkg.bzl.
  • pkg_rpm: support for source_date_epoch.
  • support for tree artifacts
  • pkg_filegroup may depend on pkg_filegroup

Incompatible Changes

  • Requires bazel 4.x to to build RPMs because of use of target_compatible_with.

Bug Fixes

  • correct calculation of Debian file name.