rust-shell-script / rust_cmd_lib

Common rust command-line macros and utilities, to write shell-script like tasks in a clean, natural and rusty way
https://docs.rs/cmd_lib/
Apache License 2.0
1.05k stars 37 forks source link

Build fails on arm-unknown-linux-gnueabihf (raspberry pi). #46

Closed xenomorph1096 closed 2 years ago

xenomorph1096 commented 2 years ago

The dependency faccess fails to install due to an unmerged pull request that fixes a small issue.

Here's the error:

 --> /home/pi/.cargo/registry/src/github.com-1ecc6299db9ec823/faccess-0.2.3/src/lib.rs:95:36
   |
95 |             if faccessat(AT_FDCWD, path.as_ptr() as *const i8, mode, AT_EACCESS) == 0 {
   |                                    ^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `u8`, found `i8`
   |
   = note: expected raw pointer `*const u8`
              found raw pointer `*const i8`

Would it be possible to change the dependency to:

faccess = { version="0.2.4", git="https://github.com/MightyPork/faccess" }

?

Freaky commented 2 years ago

Should be fixed now, sorry about that.

xenomorph1096 commented 2 years ago

Yeah it is! no problems!

xenomorph1096 commented 2 years ago

Forgot that solving this issue would also require an update to the dependency version.

xenomorph1096 commented 2 years ago

ah, nevermind. Im just confused