Skip to content

Releases: bazelbuild/rules_pkg

0.2.2

16 Aug 20:50
cb54c42
Compare
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
Compare
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
Compare
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
Compare
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.