Skip to content

Initial release

Compare
Choose a tag to compare
@aiuto aiuto released this 07 Jun 15:55
86acfe2

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.