MordechaiHadad / bob

A version manager for neovim
MIT License
1.41k stars 36 forks source link

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

Open orhun opened 1 year ago

orhun commented 1 year ago

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 commented 1 year ago

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 commented 1 year ago

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 commented 1 year ago

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.