chore: try to reproduce bug with zstd being non-hermetic
diff --git a/lib/tests/zstd/BUILD.bazel b/lib/tests/zstd/BUILD.bazel
index aede113..e82989b 100644
--- a/lib/tests/zstd/BUILD.bazel
+++ b/lib/tests/zstd/BUILD.bazel
@@ -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"],
diff --git a/lib/tests/zstd/srcfile b/lib/tests/zstd/srcfile
index e69de29..2ef267e 100644
--- a/lib/tests/zstd/srcfile
+++ b/lib/tests/zstd/srcfile
@@ -0,0 +1 @@
+some content