Reference

std/archive

tar archives (POSIX ustar): tarred writes the entries as an archive that depends on nothing but the entries, and untarred reads one back. A package of the registry is a tar inside gzip (std/compression, docs/design/RELEASE.md section 7.2).

Only regular files are written and read: a directory entry is skipped, and a link, a device or an extended header is refused, because a package has no use for one and a link is how an archive writes outside of where it is unpacked. A path is kept as the archive says it; whoever writes the files out checks it (no .., not absolute).

Modules

Everything