chore: try to reproduce bug with zstd being non-hermetic

This commit is contained in:
Alex Eagle 2024-07-09 16:49:00 -07:00
parent fb950d38ae
commit b8789d1fd5
No known key found for this signature in database
2 changed files with 7 additions and 10 deletions

View File

@ -1,21 +1,17 @@
load("@aspect_bazel_lib//lib:tar.bzl", "tar")
load("@aspect_bazel_lib//lib:testing.bzl", "assert_archive_contains")
# Case 1: Can decompress gzip archive
genrule(
tar(
name = "tar",
srcs = [
"srcfile",
],
outs = ["1.tar.gz"],
cmd = "$(BSDTAR_BIN) --create --gzip --dereference --file $@ -s '#$(BINDIR)##' $(execpath srcfile)",
toolchains = ["@bsd_tar_toolchains//:resolved_toolchain"],
srcs = ["srcfile"],
out = "1.tar.zst",
compress = "zstd",
)
genrule(
name = "decompress_tar",
srcs = [
":tar",
],
srcs = [":tar"],
outs = ["1.tar"],
cmd = "$(ZSTD_BIN) -f --decompress $(execpath :tar) --stdout > $@",
toolchains = ["@zstd_toolchains//:resolved_toolchain"],

View File

@ -0,0 +1 @@
some content