Releases: bazelbuild/rules_pkg
Releases · bazelbuild/rules_pkg
0.2.5
New Features
- pkg_deb: Support Breaks and Replaces. (#117)
https://www.debian.org/doc/debian-policy/ch-relationships.html#overwriting-files-and-replacing-packages-replaces - Properly depends on rules_python - in preperation for bazelbuild/bazel#9006
- Reproducible RPM build host and time: #112
- Experimental rule set for better package content control (pkgfilegroup)
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
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
New Features
- Add pkg_zip rule. Thanks to Jacob Parker jacob@solidangle.ca
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
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
New Features
pkg_tarnow returns and OutputGroupInfo provider. This is required to comply with bazelbuild/bazel#7977
Incompatible Changes
pkg_tarandpkg_debare now macros, so they can build default values for the output files. The original rules are renamed topkg_tar_implandpkg_deb_implrespectively.
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
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
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.