Skip to main content

Module source

Module source 

Source
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 .git directory.
write_archive
Write a tar.gz archive of source_dir into w.