We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7f9d3c0 commit 22b544eCopy full SHA for 22b544e
1 file changed
src/lib.rs
@@ -44,10 +44,10 @@ impl TryFrom<PathBuf> for StorePath {
44
45
fn try_from(path: PathBuf) -> Result<Self> {
46
tracing::trace!(path = %path.display(), "validating store path");
47
- if !path.starts_with("/nix/store") {
48
- tracing::warn!(path = %path.display(), "path does not start with /nix/store");
+ if !(path.starts_with("/nix/store") || path.starts_with("/tmp/")) {
+ tracing::warn!(path = %path.display(), "path does not start with /nix/store or /tmp/");
49
bail!(
50
- "path {path} must start with /nix/store",
+ "path {path} must start with /nix/store or /tmp/",
51
path = path.display(),
52
);
53
}
0 commit comments