Skip to content
Snippets Groups Projects
  • Ludovic Courtès's avatar
    eba783b7
    substitute-binary: Add a local cache. · eba783b7
    Ludovic Courtès authored
    * guix/scripts/substitute-binary.scm (%narinfo-cache-directory,
      %narinfo-ttl, %narinfo-negative-ttl): New variables.
      (with-atomic-file-output, object->fields, read-narinfo,
      write-narinfo, narinfo->string, string->narinfo, lookup-narinfo): New
      procedures.
      (fetch-narinfo): Adjust to use `read-narinfo'.
      (guix-substitute-binary): Ensure the existence of
      %NARINFO-CACHE-DIRECTORY.  Use `lookup-narinfo' instead of
      `fetch-narinfo'.
    eba783b7
    History
    substitute-binary: Add a local cache.
    Ludovic Courtès authored
    * guix/scripts/substitute-binary.scm (%narinfo-cache-directory,
      %narinfo-ttl, %narinfo-negative-ttl): New variables.
      (with-atomic-file-output, object->fields, read-narinfo,
      write-narinfo, narinfo->string, string->narinfo, lookup-narinfo): New
      procedures.
      (fetch-narinfo): Adjust to use `read-narinfo'.
      (guix-substitute-binary): Ensure the existence of
      %NARINFO-CACHE-DIRECTORY.  Use `lookup-narinfo' instead of
      `fetch-narinfo'.
Code owners
Assign users and groups as approvers for specific file changes. Learn more.