bazel: migrate rules_pkg to bzlmod

This commit is contained in:
Malte Poll 2024-05-21 13:28:40 +02:00
parent 8abac5c2fd
commit 2ba94f5ba8
3 changed files with 1 additions and 24 deletions

View File

@ -3,3 +3,4 @@ module(name = "constellation")
bazel_dep(name = "bazel_skylib", version = "1.6.1") bazel_dep(name = "bazel_skylib", version = "1.6.1")
bazel_dep(name = "hermetic_cc_toolchain", version = "3.1.0") bazel_dep(name = "hermetic_cc_toolchain", version = "3.1.0")
bazel_dep(name = "rules_cc", version = "0.0.9") bazel_dep(name = "rules_cc", version = "0.0.9")
bazel_dep(name = "rules_pkg", version = "0.10.1")

View File

@ -255,15 +255,6 @@ register_toolchains(
"@zig_sdk//toolchain:windows_amd64", "@zig_sdk//toolchain:windows_amd64",
) )
# Packaging rules (tar)
load("//bazel/toolchains:pkg_deps.bzl", "pkg_deps")
pkg_deps()
load("@rules_pkg//:deps.bzl", "rules_pkg_dependencies")
rules_pkg_dependencies()
# Aspect Bazel Lib # Aspect Bazel Lib
load("//bazel/toolchains:aspect_bazel_lib.bzl", "aspect_bazel_lib") load("//bazel/toolchains:aspect_bazel_lib.bzl", "aspect_bazel_lib")

View File

@ -1,15 +0,0 @@
"""rules_pkg dependencies"""
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
def pkg_deps():
http_archive(
name = "rules_pkg",
urls = [
"https://mirror.bazel.build/github.com/bazelbuild/rules_pkg/releases/download/0.10.1/rules_pkg-0.10.1.tar.gz",
"https://cdn.confidential.cloud/constellation/cas/sha256/d250924a2ecc5176808fc4c25d5cf5e9e79e6346d79d5ab1c493e289e722d1d0",
"https://github.com/bazelbuild/rules_pkg/releases/download/0.10.1/rules_pkg-0.10.1.tar.gz",
],
sha256 = "d250924a2ecc5176808fc4c25d5cf5e9e79e6346d79d5ab1c493e289e722d1d0",
type = "tar.gz",
)