Skip to content

Releases: bazelbuild/rules_pkg

0.6.0

24 Jan 20:14
4fa18d1
Compare
Choose a tag to compare

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.

0.5.1

18 Aug 15:54
b83be9c
Compare
Choose a tag to compare

This is a patch release to 0.5.0.

New features

  • Add pkg_deb(architecture_file) to provide a way to set the Debian package architecture from the content of a file created at
    build time. (#390)
  • Provide pkg_install for a "make install"-like experience in Bazel (#380)
    • Note: This feature is still in development. Read the PR for more information.
  • Initial support for the pkg_filegroup framework in pkg_zip (#373)

Closed bugs

  • Change the Debian example to reflect standard Debian naming. (#389)
  • pkg_tar(include_runfiles) now works again (#392)
  • internal code cleanup

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

Using the rules

0.5.0

12 Jul 20:57
d5faa63
Compare
Choose a tag to compare

Major New Features

  • Entirely new pkg_rpm feature set
  • pkg_files support for pkg_tar
  • stamp support for pkg_tar and pkg_zip

See CHANGELOG.md for more details.

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

Using the rules

See the source.

0.4.0

03 Mar 14:59
19d910b
Compare
Choose a tag to compare

New Features

  • package_file_name &package_variables to allow dynamically named output files.
  • rpmbuild is now a toolchain allowing you better control using your own vs. the system one
  • Portions of the pkg_filegroup rule suite are available in @rules_pkg//:mappings.bzl, but there are no packaging rules that use it at this time. Rules that use it will be added in 1.0.

Incompatible Changes

  • archive_name is now deprecated. To be remove before 1.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/0.4.0/rules_pkg-0.4.0.tar.gz",
        "https://github.com/bazelbuild/rules_pkg/releases/download/0.4.0/rules_pkg-0.4.0.tar.gz",
    ],
    sha256 = "038f1caa773a7e35b3663865ffb003169c6a71dc995e39bf4815792f385d837d",
)
load("@rules_pkg//:deps.bzl", "rules_pkg_dependencies")
rules_pkg_dependencies()

Using the rules

See the source and the examples.

Contributors
This release contains contributions and fixes from Andrew Psaltis, dmayle, Konstantin Erman, Martin Medler, Motiejus Jakštys, Thi Doãn, Thomas Gish, and Xavier Bonaventura.

0.3.0

26 Oct 04:21
36e8363
Compare
Choose a tag to compare

New Features

  • provides feature in pkg_deb
  • strip_prefixe attribute in pkg_zip
  • numerous enhancements to pkg_rpm
  • xz compression support for pkg_tar

This release features contributions by the Bazel team and
andreas-0815-qwertz, Andrew Psaltis, Daniel Sullivan, David Schneider,
Elliot Murphy, Matthias Frei, Matt Mikitka, Pras Velagapudi, Shimin Guo,
and Ulf Adams

See CHANGELOG.MD for a detailed list.

Incompatible Changes

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

Using the rules

See the source.

0.2.6

29 Apr 17:46
eea3f69
Compare
Choose a tag to compare
0.2.6 Pre-release
Pre-release

New Features

  • Option to preserve mtimes on files in tarballs which are included as srcs of a pkg_tar. (true by default)
  • experimental feature: pkgfilegroup (thanks to Andrew Psaltis apsaltis@vmware.com)

Bug fixes

  • length computation for make_deb(..., extrafiles,...) (thanks to Matthias Frei matthias.frei@inf.ethz.ch)
  • Fix setting of BUILDROOT for pkg_rpm (thanks to Matt Mikitka)

Incompatible Changes
The mtime preservation change is incompatible if you repackaging a pre-built .tar file, but not if it is one built-by blaze. The new behavior is more appropriate.

WORKSPACE setup

load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
    name = "rules_pkg",
    urls = [
        "https://github.com/bazelbuild/rules_pkg/releases/download/0.2.6-1/rules_pkg-0.2.6.tar.gz",
        "https://mirror.bazel.build/github.com/bazelbuild/rules_pkg/releases/download/0.2.6/rules_pkg-0.2.6.tar.gz",
    ],
    sha256 = "aeca78988341a2ee1ba097641056d168320ecc51372ef7ff8e64b139516a4937",
)
load("@rules_pkg//:deps.bzl", "rules_pkg_dependencies")
rules_pkg_dependencies()

Using the rules

See the source.

0.2.6 - abandoned

29 Apr 17:10
3e66263
Compare
Choose a tag to compare
0.2.6 - abandoned Pre-release
Pre-release

Do not use

0.2.5

13 Mar 03:18
b60dabf
Compare
Choose a tag to compare

New Features

Incompatible Changes

None known. Bug fixes may have changed non-deterministic behavior to deterministic behavior.

WORKSPACE setup

load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
    name = "rules_pkg",
    urls = [
        "https://github.com/bazelbuild/rules_pkg/releases/download/0.2.5/rules_pkg-0.2.5.tar.gz",
        "https://mirror.bazel.build/github.com/bazelbuild/rules_pkg/releases/download/0.2.5/rules_pkg-0.2.5.tar.gz",
    ],
    sha256 = "352c090cc3d3f9a6b4e676cf42a6047c16824959b438895a76c2989c6d7c246a",
)
load("@rules_pkg//:deps.bzl", "rules_pkg_dependencies")
rules_pkg_dependencies()

Using the rules

See the source.

0.2.4

30 Sep 12:43
b1014c8
Compare
Choose a tag to compare

New Features

  • Improved WORKSPACE stanza to support deps and toolchain methods.

WORKSPACE setup

load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
    name = "rules_pkg",
    url = "https://github.com/bazelbuild/rules_pkg/releases/download/0.2.4/rules_pkg-0.2.4.tar.gz",
    sha256 = "4ba8f4ab0ff85f2484287ab06c0d871dcb31cc54d439457d28fd4ae14b18450a",
)

Using the rules

See the source.

0.2.3

20 Sep 17:58
ae10cbc
Compare
Choose a tag to compare

New Features

WORKSPACE setup

load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
    name = "rules_pkg",
    url = "https://github.com/bazelbuild/rules_pkg/releases/download/0.2.3/rules_pkg-0.2.3.tar.gz",
    sha256 = "bdf04c8a7eeac7fddb824cdf92029af2f6a7ec38b10bf45e06f6b9f7ac57d07c",
)
load("@rules_pkg//:deps.bzl", "rules_pkg_dependencies")
rules_pkg_dependencies()

Using the rules

See the source.