Skip to content
This repository has been archived by the owner on Dec 1, 2023. It is now read-only.

Package on crates.io broken #89

Closed
Potpourri opened this issue Mar 28, 2015 · 15 comments
Closed

Package on crates.io broken #89

Potpourri opened this issue Mar 28, 2015 · 15 comments

Comments

@Potpourri
Copy link

 Downloading rustc-serialize v0.3.8

Unable to get packages from source

Caused by:

  Failed to unpack package `rustc-serialize v0.3.8`

Caused by:

  corrupt deflate stream
@jmitchell
Copy link

@jmitchell
Copy link

I don't have enough context to know what may have changed with the interpretation, production, or handling of the streams.

@msiemens
Copy link

Using tar to unzip rustc-serialize-0.3.8.crate also fails:

$ tar -xvf rustc-serialize-0.3.8.crate
rustc-serialize-0.3.8/.gitignore
rustc-serialize-0.3.8/.travis.yml
rustc-serialize-0.3.8/Cargo.toml
rustc-serialize-0.3.8/LICENSE-APACHE
rustc-serialize-0.3.8/LICENSE-MIT
rustc-serialize-0.3.8/README.md
rustc-serialize-0.3.8/src/base64.rs
rustc-serialize-0.3.8/src/collection_impls.rs
rustc-serialize-0.3.8/src/hex.rs
rustc-serialize-0.3.8/src/json.rs

gzip: stdin: unexpected end of file
tar: Unexpected EOF in archive
tar: Unexpected EOF in archive
tar: Error is not recoverable: exiting now

Looks like the package got corrupted while uploading or something...

@Hoverbear
Copy link
Contributor

Confirming the newest rustc-serialize is broken on crates.io.

➜  raft git:(master) cargo test --verbose
Unable to get packages from source

Caused by:
  Failed to unpack package `rustc-serialize v0.3.8`

Caused by:
  corrupt deflate stream

@jmitchell
Copy link

@huonw, I'm guessing you packaged and deployed the crate after bumping the version a few hours ago.

Do you still have the *.crate file that got deployed? Can its contents be extracted?

@huonw
Copy link
Contributor

huonw commented Mar 29, 2015

Hm, I don't think it was me, maybe @alexcrichton?

@jmitchell
Copy link

Err, right. Apparently I haven't had enough coffee... ☕

@dirvine
Copy link

dirvine commented Mar 29, 2015

Yes, this seems to be causing widespread failure across many crates now.

@andersk
Copy link
Contributor

andersk commented Mar 29, 2015

Workaround for users running into this problem: edit your Cargo.lock file to change all rustc-serialize references from 0.3.8 to 0.3.7, then rerun cargo build.

@eminence
Copy link

or set rustc-serialize = "=0.3.7" in Cargo.toml

@dirvine
Copy link

dirvine commented Mar 29, 2015

@eminence I think that will only work if nothing you include also includes rustc-serialize Many crates have that dependency also.

@bdero
Copy link

bdero commented Mar 29, 2015

Running into this as well.

@dirvine - I think changing all of the rustc-serialize version references in Cargo.lock should work (as it did for me), since lock files track all dependencies, including dependencies of dependencies.

@brson
Copy link

brson commented Mar 29, 2015

I also hit this!

@bdero
Copy link

bdero commented Mar 29, 2015

@dirvine Whoops, I think I may have missed the context there in my last comment. Sorry.

@alexcrichton
Copy link
Contributor

I've yanked 0.3.8 and republished as 0.3.9, sorry for the inconvenience everyone!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests