From 39fe29d8f47259c8547c231f22874501678203ee Mon Sep 17 00:00:00 2001 From: Preston Van Loon Date: Mon, 13 Mar 2023 15:17:12 -0500 Subject: [PATCH] Replace @bazel pkg_tar rule with canonical @rules_pkg pkg_tar (#12120) * Replace @bazel pkg_tar rule with canonical @rules_pkg pkg_tar * gazelle on workspace --- WORKSPACE | 13 +++++++++++++ tools/BUILD.bazel | 2 +- 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/WORKSPACE b/WORKSPACE index 4c3b2c73f..d224e8739 100644 --- a/WORKSPACE +++ b/WORKSPACE @@ -3,6 +3,19 @@ workspace(name = "prysm") load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") load("@bazel_tools//tools/build_defs/repo:git.bzl", "git_repository") +http_archive( + name = "rules_pkg", + sha256 = "8c20f74bca25d2d442b327ae26768c02cf3c99e93fad0381f32be9aab1967675", + urls = [ + "https://mirror.bazel.build/github.com/bazelbuild/rules_pkg/releases/download/0.8.1/rules_pkg-0.8.1.tar.gz", + "https://github.com/bazelbuild/rules_pkg/releases/download/0.8.1/rules_pkg-0.8.1.tar.gz", + ], +) + +load("@rules_pkg//:deps.bzl", "rules_pkg_dependencies") + +rules_pkg_dependencies() + http_archive( name = "com_grail_bazel_toolchain", sha256 = "b210fc8e58782ef171f428bfc850ed7179bdd805543ebd1aa144b9c93489134f", diff --git a/tools/BUILD.bazel b/tools/BUILD.bazel index 9f6e1986e..47c9215ee 100644 --- a/tools/BUILD.bazel +++ b/tools/BUILD.bazel @@ -1,4 +1,4 @@ -load("@bazel_tools//tools/build_defs/pkg:pkg.bzl", "pkg_tar") +load("@rules_pkg//pkg:pkg.bzl", "pkg_tar") load("@io_bazel_rules_docker//contrib:passwd.bzl", "passwd_entry", "passwd_file") load("@io_bazel_rules_docker//container:container.bzl", "container_image") load("//tools:build_settings.bzl", "base_image")