Function tvix_glue::builtins::fetchers::fetcher_builtins::fetch_lazy

source ·
fn fetch_lazy(
    state: Rc<TvixStoreIO>,
    name: String,
    fetch: Fetch
) -> Result<Value, ErrorKind>
Expand description

Consumes a fetch. If there is enough info to calculate the store path without fetching, queue the fetch to be fetched lazily, and return the store path. If there’s not enough info to calculate it, do the fetch now, and then return the store path.