Skip to content

Commit

Permalink
Remove unnecessary use of _impl pkg rules.
Browse files Browse the repository at this point in the history
Updates bazelbuild/rules_pkg#263

PiperOrigin-RevId: 424953384
  • Loading branch information
amscanne authored and gvisor-bot committed Jan 28, 2022
1 parent 3f42b2d commit 62665f8
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
7 changes: 5 additions & 2 deletions WORKSPACE
Original file line number Diff line number Diff line change
Expand Up @@ -585,8 +585,11 @@ rbe_autoconfig(name = "rbe_default")

http_archive(
name = "rules_pkg",
sha256 = "353b20e8b093d42dd16889c7f918750fb8701c485ac6cceb69a5236500507c27",
url = "https://github.com/bazelbuild/rules_pkg/releases/download/0.5.0/rules_pkg-0.5.0.tar.gz",
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")
Expand Down
1 change: 0 additions & 1 deletion debian/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ pkg_tar(

pkg_deb(
name = "debian",
out = "runsc-latest.deb",
architecture = select_arch(
amd64 = "amd64",
arm64 = "arm64",
Expand Down
3 changes: 1 addition & 2 deletions tools/bazeldefs/pkg.bzl
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
"""Packaging rules."""

# N.B. We refer to pkg_deb_impl to avoid the macro, which cannot use select.
load("@rules_pkg//:pkg.bzl", _pkg_deb = "pkg_deb_impl", _pkg_tar = "pkg_tar")
load("@rules_pkg//pkg:pkg.bzl", _pkg_deb = "pkg_deb", _pkg_tar = "pkg_tar")

pkg_deb = _pkg_deb
pkg_tar = _pkg_tar

0 comments on commit 62665f8

Please sign in to comment.