GithubHelp home page GithubHelp logo

Comments (15)

jmitchell avatar jmitchell commented on July 21, 2024

I'm also bumping into this.

May be coming from Cargo's Flate2 dependency: https://github.com/alexcrichton/flate2-rs/blob/931360fb2bba4656aa944f1a1e91d1ee1c5a5033/src/raw.rs#L239

Here's where Cargo uses Flate2 to unpack the package: https://github.com/rust-lang/cargo/blob/964e72ffc0ae29d6ff1fa1d23a6141f8152433d1/src/cargo/sources/registry.rs#L354

from rustc-serialize.

jmitchell avatar jmitchell commented on July 21, 2024

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

from rustc-serialize.

msiemens avatar msiemens commented on July 21, 2024

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...

from rustc-serialize.

Hoverbear avatar Hoverbear commented on July 21, 2024

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

from rustc-serialize.

jmitchell avatar jmitchell commented on July 21, 2024

@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?

from rustc-serialize.

huonw avatar huonw commented on July 21, 2024

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

from rustc-serialize.

jmitchell avatar jmitchell commented on July 21, 2024

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

from rustc-serialize.

dirvine avatar dirvine commented on July 21, 2024

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

from rustc-serialize.

andersk avatar andersk commented on July 21, 2024

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.

from rustc-serialize.

eminence avatar eminence commented on July 21, 2024

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

from rustc-serialize.

dirvine avatar dirvine commented on July 21, 2024

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

from rustc-serialize.

bdero avatar bdero commented on July 21, 2024

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.

from rustc-serialize.

brson avatar brson commented on July 21, 2024

I also hit this!

from rustc-serialize.

bdero avatar bdero commented on July 21, 2024

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

from rustc-serialize.

alexcrichton avatar alexcrichton commented on July 21, 2024

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

from rustc-serialize.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.