mirror of
https://github.com/fosskers/cargo-aur.git
synced 2026-07-15 07:42:00 -05:00
[GH-ISSUE #33] cargo aur "error: failed to determine fingerprint for build script for ..." #13
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @dcampbell24 on GitHub (Mar 15, 2025).
Original GitHub issue: https://github.com/fosskers/cargo-aur/issues/33
When I run
cargo auron Debian it works fine, but when I run it on Manjaro I get the error "failed to determine fingerprint for build script for [the package name]".@fosskers commented on GitHub (Mar 17, 2025):
Can you paste the full output?
@dcampbell24 commented on GitHub (Mar 17, 2025):
$ cargo aur
:: LICENSE file will be installed manually.
:: Running release build...
error: failed to determine package fingerprint for build script for hnefatafl-copenhagen v0.8.2 (/home/david/code/hnefatafl-copenhagen)
An I/O error happened. Please make sure you can access the file.
By default, if your project contains a build script, cargo scans all files in
it to determine whether a rebuild is needed. If you don't expect to access the
file, specify
rerun-if-changedin your build script.See https://doc.rust-lang.org/cargo/reference/build-scripts.html#rerun-if-changed for more information.
Caused by:
failed to determine the most recently modified file in /home/david/code/hnefatafl-copenhagen
Caused by:
failed to determine list of files in /home/david/code/hnefatafl-copenhagen
Caused by:
Failed to read the directory at '/home/david/code/hnefatafl-copenhagen/pkg'
Caused by:
Permission denied (os error 13)
:: Stripping binary...
strip: 'target/release/hnefatafl-client': No such file
:: Error: No such file or directory (os error 2)
@fosskers commented on GitHub (Mar 26, 2025):
That's quite strange... That looks like
cargooutput, notcargo aur's. I wonder why you'd be denied permissions here.@dcampbell24 commented on GitHub (Mar 27, 2025):
It was trying to use the wrong version of the compiler. I had set
rust-versionto1.79, but I had1.85.1installed. I also ran into the issue of your tool not supporting features. I had to build the package withcargo build --bin hnefatafl-client --release --features client. Then runcargo aur.@dcampbell24 commented on GitHub (Mar 27, 2025):
(I think that was the issue, I removed and re-installed Manjaro. Meanwhile I switched from
rust-version = 1.79torust-version = 1.85.1.) Oh... AND I switched fromedition = 2021toedition = 2024. Maybe theeditionwas the issue, now I'm not sure, but it works now.@dcampbell24 commented on GitHub (Mar 27, 2025):
I used
makepkgon the result of building and got it installed.@fosskers commented on GitHub (Mar 27, 2025):
Great to hear, thanks again.
cargo aur "error: failed to determine fingerprint for build script for ..."to [GH-ISSUE #33] cargo aur "error: failed to determine fingerprint for build script for ..."