Add an archiver API to the build system

There should be an API for creating archives (tar, tar.gz) in std.build.

Why:

  1. We should not rely on code distribution platforms (github, codeberg, etc) to create code archives for releases. It’s important for zig to own the full process of distributing code to reduce our dependencies.
  2. It’s non-trivial to create build-artifact quality archives. Some thorns are: file permissions, file names (cross platform stuff), file modification times (binary reproducibilty)

The std.build API could provide sensible defaults that aid our use case of redistributing code / build artifacts like encouraging reproducibilty even across platforms.

5 Likes

(post deleted by author)