pub async fn push_path(
storage: &dyn StorageBackend,
signer: &CacheSigner,
store_path: &str,
hash: &str,
references: &[String],
deriver: Option<&str>,
) -> Result<PushResult, CacheError>Expand description
Push a store path to the binary cache.
- Dump the path as NAR
- Hash the uncompressed NAR (sha256)
- Compress with xz
- Hash the compressed NAR (sha256)
- Build narinfo metadata
- Sign the narinfo
- Upload NAR blob and narinfo
The store_path should be an absolute path like /nix/store/abc-hello-1.0.
The hash is the 32-character store path hash (the abc part).
references are the runtime dependency store path basenames.