Skip to content

fetchPinned

fetchPinned(tools, arch, dir, deps): Promise<readonly string[]>

Download every pinned linux asset for arch, refuse any whose sha256 is not the pinned one, unpack the binary into dir (or place it there, when the asset is the binary), and require it to report the pinned version. Throws on the first problem: CI must never lint with a tool it could not verify.

readonly IPinnedTool[]

LinuxArch

string

IFetchDeps

Promise<readonly string[]>