Skip to content

Commit e18c297

Browse files
committed
fix(tgrustc): skip pseudo paths
1 parent 4f4621d commit e18c297

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

packages/rust/tgrustc/src/process.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -237,6 +237,10 @@ pub(crate) async fn content_address_path(path: &str) -> tg::Result<tg::Value> {
237237
return Ok(template.into());
238238
}
239239

240+
if path.starts_with("/proc/") || path.starts_with("/sys/") || path.starts_with("/dev/") {
241+
return Ok(template.into());
242+
}
243+
240244
let path_obj = Path::new(path);
241245
if path_obj.is_absolute() && path_obj.exists() {
242246
if let Some(cached_id) = read_checkin_cache(path) {

0 commit comments

Comments
 (0)