Unable to Install trashy on M1 Mac
Opened this issue · 1 comments
eli-yip commented
I am unable to install trashy on my M1 Mac. Here are the details of my environment:
Environment:
Macbook M1 Pro
macOS 14.4.1 (23E224)
Cargo 1.78.0 (54d8815d0 2024-03-26)
Log
...
Compiling trashy v2.0.0
error[E0433]: failed to resolve: could not find `os_limited` in `trash`
--> /Users/[USERNAME]/.cargo/registry/src/index.crates.io-6f17d22bba15001f/trashy-2.0.0/src/app/command/empty.rs:52:12
|
52 | trash::os_limited::purge_all(items.items())?;
| ^^^^^^^^^^ could not find `os_limited` in `trash`
|
note: found an item that was configured out
--> /Users/[USERNAME]/.cargo/registry/src/index.crates.io-6f17d22bba15001f/trash-2.1.5/src/lib.rs:295:9
|
295 | pub mod os_limited {
| ^^^^^^^^^^
error[E0433]: failed to resolve: could not find `os_limited` in `trash`
--> /Users/[USERNAME]/.cargo/registry/src/index.crates.io-6f17d22bba15001f/trashy-2.0.0/src/app/command/list.rs:94:28
|
94 | let mut items = trash::os_limited::list()?;
| ^^^^^^^^^^ could not find `os_limited` in `trash`
|
note: found an item that was configured out
--> /Users/[USERNAME]/.cargo/registry/src/index.crates.io-6f17d22bba15001f/trash-2.1.5/src/lib.rs:295:9
|
295 | pub mod os_limited {
| ^^^^^^^^^^
error[E0433]: failed to resolve: could not find `os_limited` in `trash`
--> /Users/[USERNAME]/.cargo/registry/src/index.crates.io-6f17d22bba15001f/trashy-2.0.0/src/app/command/list.rs:100:48
|
100 | Ok(process_items(rev, max, filters, trash::os_limited::list()?))
| ^^^^^^^^^^ could not find `os_limited` in `trash`
|
note: found an item that was configured out
--> /Users/[USERNAME]/.cargo/registry/src/index.crates.io-6f17d22bba15001f/trash-2.1.5/src/lib.rs:295:9
|
295 | pub mod os_limited {
| ^^^^^^^^^^
error[E0433]: failed to resolve: could not find `os_limited` in `trash`
--> /Users/[USERNAME]/.cargo/registry/src/index.crates.io-6f17d22bba15001f/trashy-2.0.0/src/app/command/restore.rs:66:12
|
66 | trash::os_limited::restore_all(items.items())?;
| ^^^^^^^^^^ could not find `os_limited` in `trash`
|
note: found an item that was configured out
--> /Users/[USERNAME]/.cargo/registry/src/index.crates.io-6f17d22bba15001f/trash-2.1.5/src/lib.rs:295:9
|
295 | pub mod os_limited {
| ^^^^^^^^^^
For more information about this error, try `rustc --explain E0433`.
error: could not compile `trashy` (bin "trash") due to 4 previous errors
error: failed to compile `trashy v2.0.0`, intermediate artifacts can be found at `/var/folders/vn/nrjpytk92j5br678y6kpr97m0000gn/T/cargo-installVY63jz`.
To reuse those artifacts with a future compilation, set the environment variable `CARGO_TARGET_DIR` to that path.
...
It seems like the os_limited module in the trash crate is not being resolved correctly. Please advise on how to resolve this issue.
mustafasegf commented
it seems that the api isn't available in macos using the trash crate. Byron/trash-rs#8