[GH-ISSUE #33] cargo aur "error: failed to determine fingerprint for build script for ..." #13

Closed
opened 2026-03-01 09:11:06 -06:00 by GiteaMirror · 7 comments
Owner

Originally created by @dcampbell24 on GitHub (Mar 15, 2025).
Original GitHub issue: https://github.com/fosskers/cargo-aur/issues/33

When I run cargo aur on 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]".

Originally created by @dcampbell24 on GitHub (Mar 15, 2025). Original GitHub issue: https://github.com/fosskers/cargo-aur/issues/33 When I run `cargo aur` on 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]".
Author
Owner

@fosskers commented on GitHub (Mar 17, 2025):

Can you paste the full output?

@fosskers commented on GitHub (Mar 17, 2025): Can you paste the full output?
Author
Owner

@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-changed in 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)

@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-changed` in 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)
Author
Owner

@fosskers commented on GitHub (Mar 26, 2025):

That's quite strange... That looks like cargo output, not cargo aur's. I wonder why you'd be denied permissions here.

@fosskers commented on GitHub (Mar 26, 2025): That's quite strange... That looks like `cargo` output, not `cargo aur`'s. I wonder why you'd be denied permissions here.
Author
Owner

@dcampbell24 commented on GitHub (Mar 27, 2025):

It was trying to use the wrong version of the compiler. I had set rust-version to 1.79, but I had 1.85.1 installed. I also ran into the issue of your tool not supporting features. I had to build the package with cargo build --bin hnefatafl-client --release --features client. Then run cargo aur.

@dcampbell24 commented on GitHub (Mar 27, 2025): It was trying to use the wrong version of the compiler. I had set `rust-version` to `1.79`, but I had `1.85.1` installed. I also ran into the issue of your tool not supporting features. I had to build the package with `cargo build --bin hnefatafl-client --release --features client`. Then run `cargo aur`.
Author
Owner

@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.79 to rust-version = 1.85.1.) Oh... AND I switched from edition = 2021 to edition = 2024. Maybe the edition was the issue, now I'm not sure, but it works now.

@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.79` to `rust-version = 1.85.1`.) Oh... AND I switched from `edition = 2021` to `edition = 2024`. Maybe the `edition` was the issue, now I'm not sure, but it works now.
Author
Owner

@dcampbell24 commented on GitHub (Mar 27, 2025):

I used makepkg on the result of building and got it installed.

@dcampbell24 commented on GitHub (Mar 27, 2025): I used `makepkg` on the result of building and got it installed.
Author
Owner

@fosskers commented on GitHub (Mar 27, 2025):

Great to hear, thanks again.

@fosskers commented on GitHub (Mar 27, 2025): Great to hear, thanks again.
GiteaMirror changed title from 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 ..." 2026-04-11 05:42:42 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/cargo-aur#13