oberblastmeister / trashy

a cli system trash manager, alternative to rm and trash-cli
Apache License 2.0
362 stars 13 forks source link

AUR Package #29

Closed tonydero closed 2 years ago

tonydero commented 2 years ago

Do you have any plans to create an AUR package for trashy?

willbasky commented 2 years ago

There is one, not building though.

   Compiling trashy v1.0.2
error: there is no argument named `table`
   --> /home/user/.cargo/registry/src/github.com-1ecc6299db9ec823/trashy-1.0.2/src/app/command/list.rs:150:29
    |
150 |     writeln!(io::stdout(), "{table}").context("Printing table")?;
    |                             ^^^^^^^

error: there is no argument named `humantime`
   --> /home/user/.cargo/registry/src/github.com-1ecc6299db9ec823/trashy-1.0.2/src/app/command/list.rs:238:14
    |
238 |     format!("{humantime}")
    |              ^^^^^^^^^^^

error: there is no argument named `len`
  --> /home/user/.cargo/registry/src/github.com-1ecc6299db9ec823/trashy-1.0.2/src/app/command/utils.rs:16:15
   |
16 |     println!("{len} item{plural} will be {action_name}");
   |               ^^^^^

error: there is no argument named `plural`
  --> /home/user/.cargo/registry/src/github.com-1ecc6299db9ec823/trashy-1.0.2/src/app/command/utils.rs:16:25
   |
16 |     println!("{len} item{plural} will be {action_name}");
   |                         ^^^^^^^^

error: there is no argument named `action_name`
  --> /home/user/.cargo/registry/src/github.com-1ecc6299db9ec823/trashy-1.0.2/src/app/command/utils.rs:16:42
   |
16 |     println!("{len} item{plural} will be {action_name}");
   |                                          ^^^^^^^^^^^^^

error: there is no argument named `s`
 --> /home/user/.cargo/registry/src/github.com-1ecc6299db9ec823/trashy-1.0.2/src/print.rs:6:19
  |
6 |     eprintln!("{} {s}", Red.bold().paint("error:"));
  |                   ^^^

error: there is no argument named `e`
  --> /home/user/.cargo/registry/src/github.com-1ecc6299db9ec823/trashy-1.0.2/src/main.rs:19:58
   |
19 |         Err(e) => ExitCode::Error.exit_with_msg(format!("{e:#}")),
   |                                                          ^^^^^

error: failed to compile `trashy v1.0.2`, intermediate artifacts can be found at `/tmp/cargo-installRSVjLh`

Caused by:
  could not compile `trashy` due to 7 previous errors
sanpii commented 2 years ago

@willbasky You need a more recent rustc version (>= 1.59 if I recall well).

It’s probably a good idea to set rust-version in Cargo.toml.

oberblastmeister commented 2 years ago

I set the rust-version in https://github.com/oberblastmeister/trashy/commit/00707563b1d6b24fb2288b50a1d9302eb029ae31. @willbasky, does it work if you use the correct rust version?

tonydero commented 2 years ago

There is one, not building though.

Ah, there wasn't when I asked. People move quick! I was going to offer to attempt it, but I would rather have someone directly involved with the project create the AUR package personally. Better chance of it continuing to work.

willbasky commented 2 years ago

@sanpii thanks, an update to last version helped. @oberblastmeister yes, thanks.