Welcome to the Inedo Forums! Check out the Forums Guide for help getting started.
If you are experiencing any issues with the forum software, please visit the Contact Form on our website and let us know!
Rust - invalid gzip header
-
Previously, I reported a bug where publishing Rust packages wouldn't compress properly and thus wouldn't be able to be viewed online or pulled. Re: Rust Crates are uploaded with an incorrect compression method
I am experiencing a new error when attempting to pull a Rust package from ProGet.
Error:
Caused by: failed to iterate over archive Caused by: invalid gzip header
I am able to view the package fine on the web interface, which is unique to the previous error.
-
Hi @rel_0477 ,
Sounds like this is a pretty specific edge case. Can you provide a reproduction case so we can take a look?
Thanks,
Alana
-
I reproduced it in the following:
cargo new reproduction --lib cd reproduction cargo publish --index sparse+<proget url> --token <token> --allow-dirty cd .. cargo new pull cd pull nano Config.toml
My Config.toml:
[package] name = "pull" version = "0.1.0" edition = "2024" publish = ["crates-io"] [dependencies] reproduction = {version = "0.1.0", registry = "crate"}
cargo build
Result:
cargo build Updating `crate` index Locking 1 package to latest Rust 1.87.0 compatible version Downloaded reproduction v0.1.0 (registry `crate`) error: failed to unpack package `reproduction v0.1.0 (registry `crate`)` Caused by: failed to iterate over archive Caused by: invalid gzip header
-
Hi @rel_0477,
Thanks for sending over the reproduction case. I was able to identify the issue, PG-2993, and have it ready to go in the next maintenance release of ProGet.
Thanks,
Rich