bazel-contrib / bazel-lib

Common useful functions for writing BUILD files and Starlark macros/rules
Apache License 2.0
141 stars 91 forks source link

tar in 2.9.1 results in invalid headers #952

Open mattem opened 2 months ago

mattem commented 2 months ago

We have a number of manual loads of container images via tars in tests. The upgrade diff to bazel-lib 2.9.1 (and 2.9.0) results in an error loading these tars into Docker with the error:

archive/tar: invalid tar header

No other error is given. This happens on different Linux flavours.

Potential culprit, https://github.com/bazel-contrib/bazel-lib/commit/3b6a3d50b10d413a01ca844342e882d600967c2f