Skip to content

Commit

Permalink
doc: warn about gzip timestamps (#979)
Browse files Browse the repository at this point in the history
  • Loading branch information
thesayyn authored Nov 4, 2024
1 parent 250c835 commit f7fb4a9
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
7 changes: 7 additions & 0 deletions docs/tar.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 7 additions & 0 deletions lib/tar.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,13 @@ We also provide full control for tar'ring binaries including their runfiles.
The `tar` binary is hermetic and fully statically-linked.
It is fetched as a toolchain from https://github.com/aspect-build/bsdtar-prebuilt.
## Important Note
When using `compress = "gzip"` its important to disable the non-deterministic time header by providing the `--options=gzip:!timestamp` option.
See: https://datatracker.ietf.org/doc/html/rfc1952#page-5
See: https://github.com/bazel-contrib/bazel-lib/issues/783
## Examples
See the [`tar` tests](/lib/tests/tar/BUILD.bazel) for examples of usage.
Expand Down

0 comments on commit f7fb4a9

Please sign in to comment.