0.6.0
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 forsource_date_epoch
.- support for tree artifacts
pkg_filegroup
may depend onpkg_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.