Skip to main content

Module fetch

Module fetch 

Source
Expand description

Fetching the upstream source of truth.

Only --refresh and --upstream come here. The offline check that CI gates on never touches the network.

Structsยง

Fetched
The upstream file, pinned to the commit it was read at.

Constantsยง

USER_AGENT ๐Ÿ”’

Functionsยง

civil_from_days ๐Ÿ”’
Howard Hinnantโ€™s civil_from_days, with 1970-01-01 as day 0.
events_ts
Resolves the newest commit touching events.ts, then reads the file at exactly that commit, so the recorded SHA always describes the recorded text.
explain ๐Ÿ”’
get ๐Ÿ”’
github_token ๐Ÿ”’
looks_like_events_ts ๐Ÿ”’
Rejects a response body that is not the upstream module.
snippet ๐Ÿ”’
The first line or so of a body, for an error message.
today_utc
Todayโ€™s date in UTC as YYYY-MM-DD.