Skip to content

Commit dfd256e

Browse files
myzhang1029sylvestre
authored andcommitted
Skip cache output to /dev/null
Signed-off-by: Zhang Maiyun <[email protected]>
1 parent 9fb942e commit dfd256e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/cache/cache.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -207,6 +207,10 @@ impl CacheRead {
207207
optional,
208208
} in objects
209209
{
210+
if path == Path::new("/dev/null") {
211+
debug!("Skipping output to /dev/null");
212+
continue;
213+
}
210214
let dir = match path.parent() {
211215
Some(d) => d,
212216
None => bail!("Output file without a parent directory!"),

0 commit comments

Comments
 (0)