Comments (15)
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.
I don't have enough context to know what may have changed with the interpretation, production, or handling of the streams.
from rustc-serialize.
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.
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.
@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.
Hm, I don't think it was me, maybe @alexcrichton?
from rustc-serialize.
Err, right. Apparently I haven't had enough coffee... ☕
from rustc-serialize.
Yes, this seems to be causing widespread failure across many crates now.
from rustc-serialize.
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.
or set rustc-serialize = "=0.3.7"
in Cargo.toml
from rustc-serialize.
@eminence I think that will only work if nothing you include also includes rustc-serialize
Many crates have that dependency also.
from rustc-serialize.
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.
I also hit this!
from rustc-serialize.
@dirvine Whoops, I think I may have missed the context there in my last comment. Sorry.
from rustc-serialize.
I've yanked 0.3.8 and republished as 0.3.9, sorry for the inconvenience everyone!
from rustc-serialize.
Related Issues (20)
- getting the hex outta here HOT 2
- Segfault on Decode HOT 2
- "no method named `into_object` found for type `rustc_serialize::json::Json` in the current scope" HOT 2
- Implement Encodable/Decodable traits for [T; 32+] HOT 3
- Segfault with only safe code HOT 4
- missing fields
- JSON decoding errors when reading string from stream HOT 2
- JSON Parsing Tests by seriot.ch HOT 1
- RFC: Allow formatting JSON with given maximum indentation level HOT 2
- 0.3.20 is not backward-compatible HOT 3
- Crates.io documentation link is broken HOT 1
- Crate publish HOT 2
- Implement ToHex (and friends) for AsRef HOT 1
- SocketAddr/IpAddr HOT 4
- from_hex should accept odd length slices HOT 1
- Add a comparison with serde to the documentation HOT 5
- Documentation links are broken HOT 1
- Add `#[deprecated]` to the crate root (lib.rs) so that everyone using this get warnings.
- Base64: invalid trailing characters when last line ending is near trailer
- Yank pre-0.3.20 versions
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rustc-serialize.