Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to Install trashy on M1 Mac #119

Closed
eli-yip opened this issue May 19, 2024 · 1 comment
Closed

Unable to Install trashy on M1 Mac #119

eli-yip opened this issue May 19, 2024 · 1 comment

Comments

@eli-yip
Copy link

eli-yip commented May 19, 2024

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
Copy link

it seems that the api isn't available in macos using the trash crate. Byron/trash-rs#8

@eli-yip eli-yip closed this as completed Jan 30, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants