Documentation
¶
Overview ¶
Package archive extracts the tar.gz and zip archives upstreams publish. Extraction is defensive: every entry must stay inside the destination — including where a link points — and only the owner-executable bit is preserved from the archive's permissions.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Extract ¶
Extract unpacks src into dst based on name's extension, dropping strip leading path components from every member (entries that do not have that many components are skipped, as tar --strip-components does). dst must already exist and should be empty.
A compressed artifact is smaller than what it becomes, sometimes by a great deal, so the write that runs the filesystem out of room is usually one of these. That failure is named rather than passed on as whatever syscall noticed it: see diag.DiskFull.
Types ¶
This section is empty.