use nix path-info cmd for derivation; console_subscriber
This commit is contained in:
parent
6806b96892
commit
b1e59d0a6c
8 changed files with 421 additions and 82 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue