Skip to content

Commit 6878782

Browse files
committed
format
1 parent b0c59d7 commit 6878782

File tree

3 files changed

+23
-1
lines changed

3 files changed

+23
-1
lines changed

MODULE.bazel

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,8 @@ bazel_dep(name = "helly25_bzl", version = "0.1.2")
2828

2929
bazel_dep(name = "tar.bzl", version = "0.6.0")
3030
tar_toolchains = use_extension("@tar.bzl//tar:extensions.bzl", "toolchains")
31-
use_repo(tar_toolchains,
31+
use_repo(
32+
tar_toolchains,
3233
"bsd_tar_toolchains_darwin_arm64",
3334
"bsd_tar_toolchains_linux_arm64",
3435
"bsd_tar_toolchains_linux_amd64",

tests/WORKSPACE

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,25 @@ local_repository(
2020
)
2121

2222
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
23+
24+
http_archive(
25+
name = "aspect_bazel_lib",
26+
sha256 = "c4f36285ceed51f75da44ffcf8fa393794d0dc2e273a2e03be50462e347740cd",
27+
strip_prefix = "bazel-lib-2.0.0",
28+
url = "https://github.com/aspect-build/bazel-lib/releases/download/v2.0.0/bazel-lib-v2.0.0.tar.gz",
29+
)
30+
31+
http_archive(
32+
name = "tar.bzl",
33+
sha256 = "a147d473a359742db2a43c8a9a8e04e31321582e6bb669dafc5ba6b2c59845d1",
34+
strip_prefix = "tar.bzl-0.6.0",
35+
url = "https://github.com/bazel-contrib/tar.bzl/releases/download/v0.6.0/tar.bzl-v0.6.0.tar.gz",
36+
)
37+
38+
load("@tar.bzl//tar:extensions.bzl", "create_repositories")
39+
40+
create_repositories()
41+
2342
load("@toolchains_llvm//toolchain:deps.bzl", "bazel_toolchain_dependencies")
2443

2544
bazel_toolchain_dependencies()

toolchain/sysroot.bzl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ def _sysroot_impl(rctx):
88

99
# Declare the sysroot files as a source directory so they can be
1010
# optimized in the Merkle tree cache more effectively.
11+
# Also, create the BUILD file before extracting because `bsdtar` expects the target
12+
# directory to exist, and this way Bazel creates it for us without needing `mkdir`.
1113
rctx.file("sysroot/BUILD.bazel", \
1214
"""filegroup(
1315
name = "sysroot",

0 commit comments

Comments
 (0)