Expand description
Source-archive helpers shared between remote and local run modes.
Walks a directory respecting .gitignore and produces a .tar.gz.
Local mode pipes the result into a chain-root container’s stdin so
steps see the user’s tree under /workspace. Remote mode hashes the
same bytes and ships them as a base64 blob in the build request.
Functions§
- build_
archive_ bytes - Build a tar.gz archive of
source_dir(respecting .gitignore) and return the resulting bytes. Excludes the literal.gitdirectory. - write_
archive - Write a tar.gz archive of
source_dirintow.