pub fn add_fetch_util(lua: &Lua) -> Result<(), Error>Expand description
Exposes HTTP and Git-forge utilities to the Lua environment.
These functions enable dynamic package definitions by allowing them to:
UTILS.FETCH.url: Fetch raw text content (e.g. version files, checksums).UTILS.FETCH.<FORGE>.LATEST: Query Git forges (GitHub, GitLab, etc.) for the latest tags, releases, or commit SHAs.
All network requests respect Zoi’s global --offline and timeout settings.
Adds basic HTTP fetching utilities to the UTILS.FETCH table.
§Errors
Returns an error if the UTILS table cannot be found or if setting the
FETCH table fails.