use nix path-info cmd for derivation; console_subscriber

This commit is contained in:
cy 2025-04-18 00:50:11 -04:00
parent 6806b96892
commit b1e59d0a6c
Signed by: cy
SSH key fingerprint: SHA256:o/geVWV4om1QhUSkKvDQeW/eAihwnjyXkqMwrVdbuts
8 changed files with 421 additions and 82 deletions

View file

@ -44,7 +44,10 @@ impl Store {
let inner = self.inner.clone();
task::spawn_blocking(move || {
let mut c_path_info = inner.store().query_path_info(path.to_string().as_bytes())?;
let mut c_path_info = inner
.store()
.query_path_info(path.to_string().as_bytes())
.context("query cpp for path info")?;
let signatures = c_path_info
.pin_mut()
@ -60,7 +63,8 @@ impl Store {
.references()
.into_iter()
.map(|x| StorePath::from_bytes(x.as_bytes()))
.collect::<Result<_, _>>()?;
.collect::<Result<_, _>>()
.context("get references from pathinfo")?;
Ok(PathInfo {
path,