Documentation
¶
Overview ¶
Package source fetches a team's files from its GitHub repo as a tarball and extracts the requested subpath — the deterministic fetch behind `atl install`.
No git binary is required (decision doc item 9, script-only distribution): a single HTTPS GET of the ref tarball, gunzip + untar in-process. A standalone team uses subpath ""; a first-party team in the atl monorepo uses its teams/<name> subpath. Extraction strips the archive's top-level "<repo>-<ref>/" directory and is hardened against path traversal.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Extract ¶
Extract reads a gzipped tar from r, strips the archive's single top-level directory, keeps only entries under subpath, and writes them under dest (so subpath becomes dest's root). Hardened against path traversal.
func Fetch ¶
Fetch downloads repo@ref, extracts subpath into a fresh temp directory, and returns that directory. The caller owns it and should remove it when done. subpath "" means the repo root.
func TarballURL ¶
TarballURL is the GitHub archive URL for a repo at a ref (tag, branch, or SHA).
Types ¶
This section is empty.