Open curiousleo opened 4 years ago
It looks like nix-instantiate
fails with the error message
file 'nixpkgs' was not found in the Nix search path (add it using $NIX_PATH or -I)
I don't understand how, given that the test already passes -I
:
#[test]
fn trivial_shell_nix() -> std::io::Result<()> {
let out = std::process::Command::new("nix-instantiate")
// we can’t assume to have a <nixpkgs>, so use bogus-nixpkgs
.args(&["-I", "nixpkgs=./nix/bogus-nixpkgs/"])
.args(&["--expr", TRIVIAL_SHELL_SRC])
.output()?;
assert!(
out.status.success(),
"stdout:\n{}\nstderr:{}\n",
std::str::from_utf8(&out.stdout).unwrap(),
std::str::from_utf8(&out.stderr).unwrap()
);
Ok(())
}
Sanity check shows that calling Command::args
multiple times is not the issue here since they just get appended: https://doc.rust-lang.org/src/std/process.rs.html#535-542
@curiousleo did the merged PR fix this issue?
@curiousleo did the merged PR fix this issue?
No, #250 just added some checks, it did not aim to fix the issue.
This failed on master: https://travis-ci.org/target/lorri/jobs/604982303#L1682