chore: try to reproduce bug with zstd being non-hermetic
This commit is contained in:
parent
fb950d38ae
commit
b8789d1fd5
|
@ -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"],
|
||||
|
|
|
@ -0,0 +1 @@
|
|||
some content
|
Loading…
Reference in New Issue