Skip to content

Releases: bazelbuild/rules_pkg

0.2.5

13 Mar 03:18
b60dabf

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

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

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.

0.2.2

16 Aug 20:50
cb54c42

Choose a tag to compare

New Features

  • Remove deps on abseil and six.

Incompatible Changes

  • None

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.2/rules_pkg-0.2.2.tar.gz",
    sha256 = "02de387c5ef874379e784ac968bf6efffe5285a168cab5a3169e08cfc634fd22",
)
load("@rules_pkg//:deps.bzl", "rules_pkg_dependencies")
rules_pkg_dependencies()

Using the rules

See the source.

0.2.1

05 Aug 18:49
4df77ae

Choose a tag to compare

New Features

  • pkg_tar now returns and OutputGroupInfo provider. This is required to comply with bazelbuild/bazel#7977

Incompatible Changes

  • pkg_tar and pkg_deb are now macros, so they can build default values for the output files. The original rules are renamed to pkg_tar_impl and pkg_deb_impl respectively.

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.1/rules_pkg-0.2.1.tar.gz",
    sha256 = "04c1eab736f508e94c297455915b6371432cbc4106765b5252b444d1656db051",
)
load("@rules_pkg//:deps.bzl", "rules_pkg_dependencies")
rules_pkg_dependencies()

Using the rules

See the source.

0.2.0

09 Jul 20:19
96e34ab

Choose a tag to compare

New Features

  • pkg_deb now uses a helper which is Python3. The code is backwards compatible with Python2.

Incompatible Changes

  • pkg_deb requires Python3 by default.

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.0/rules_pkg-0.2.0.tar.gz",
    sha256 = "5bdc04987af79bd27bc5b00fe30f59a858f77ffa0bd2d8143d5b31ad8b1bd71c",
)

load("@rules_pkg//:deps.bzl", "rules_pkg_dependencies")
rules_pkg_dependencies()

Using the rules

See the source.

Initial release

07 Jun 15:55
86acfe2

Choose a tag to compare

This is a first release of the Bazel packaging rules. They were copied from bazelbuild/bazel and moved to this repository to make it easier to take for community contributions.

  • The Bazel team will be moving from their internal copy to using these rules in the future.
  • Users of pkg_tar, pkg_deb & pkg_rpm can switch to these rules starting now.
  • Issues & PRs against bazelbuild/bazel/tools/build_defs/pkg will no longer be accepted. Please send them here.

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.1.0/rules_pkg-0.1.0.tar.gz",
    sha256 = "752146e2813f4c135ec9f71b592bf98f96f026049e6d65248534dbeccb2448e1",
)

load("@rules_pkg//:deps.bzl", "rules_pkg_dependencies")
rules_pkg_dependencies()

Using the rules

See the source.