Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cargo install: invalid serialized PackageId for key package.dependencies #14

Closed
skybert opened this issue Apr 24, 2020 · 2 comments
Closed

Comments

@skybert
Copy link

skybert commented Apr 24, 2020

root@foo ~ # cargo install desed
    Updating crates.io index
  Downloaded desed v1.1.4
  Downloaded 1 crates (1.4 MB) in 2.38s (largest was `desed` at 1.4 MB)
  Installing desed v1.1.4
error: failed to compile `desed v1.1.4`, intermediate artifacts can be found at `/tmp/cargo-install0G6OX1`

Caused by:
  failed to parse lock file at: /root/.cargo/registry/src/github.aaakk.us.kg-1ecc6299db9ec823/desed-1.1.4/Cargo.lock

Caused by:
  invalid serialized PackageId for key `package.dependencies`
# cargo --version
cargo 1.34.0
@SoptikHa2
Copy link
Owner

Huh, that's weird, it works for me just fine. Maybe try to update? I have version 1.43.0, it's possible that it's using some new feature that yours don't have yet. Maybe it's because of this, which would require you to update to at least 1.38.0.

If you don't want to update you can download prebuilt binary for linux, but that would be painful to update and you would have to trust me that the binary comes from this source code and I didn't add anything extra to it.

@skybert
Copy link
Author

skybert commented Apr 24, 2020

Upgrading to 1.42.1 (the version in Debian/bullseye) solved the problem. Thanks for your swift reply.

@skybert skybert closed this as completed Apr 24, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants