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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to build with --frozen flag on Arch Linux #153

Open
orhun opened this issue Aug 20, 2023 · 3 comments
Open

Unable to build with --frozen flag on Arch Linux #153

orhun opened this issue Aug 20, 2023 · 3 comments

Comments

@orhun
Copy link
Contributor

orhun commented Aug 20, 2023

Hey! 馃惢

I faced a strange issue while building the latest version of bob (2.5.0) on Arch Linux.

Reproducing steps in a clean chroot:

$ git clone https://github.com/MordechaiHadad/bob && cd bob/

$ cargo fetch --locked --target "x86_64-unknown-linux-gnu"

$ cargo build --release --frozen

thread 'main' panicked at 'packages downloaded: failed to download `flate2 v1.0.27`

Caused by:
    attempting to make an HTTP request, but --frozen was specified', src/cargo/ops/cargo_compile/mod.rs:910:14
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

However, if you remove the --frozen flag, build once and repeat the process, then it works magically.

First 2 cargo commands (fetch/build) is a pattern that we follow for all Rust packages for Arch Linux and it is needed for reproducibility. It worked fine for most of my packages but I don't know why bob is not accepting it.

I'm still investigating the issue, any input is appreciated.

Thanks!

@MordechaiHadad
Copy link
Owner

I have never tried building with --frozen, maybe the problem is with the version of flate? I dunno tbh
I can investigate this tomorrow

@MordechaiHadad
Copy link
Owner

MordechaiHadad commented Aug 21, 2023

just tried this now, I get the same error.
That's pretty weird

EDIT: Tried deleting my registry index folder, cargo update but it still failed wtf

@MordechaiHadad
Copy link
Owner

MordechaiHadad commented Aug 22, 2023

Another update, not successful tho.
Downgraded flat2 to 1.0.26, ran cargo update removed my ~/.cargo/registry/index ran the commands still getting the same damn error.

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