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 package fails to serialize TOML #9337

Closed
tyranron opened this issue Apr 8, 2021 · 1 comment
Closed

cargo package fails to serialize TOML #9337

tyranron opened this issue Apr 8, 2021 · 1 comment
Labels
C-bug Category: bug

Comments

@tyranron
Copy link

tyranron commented Apr 8, 2021

Problem
Cannot package or publish a crate.

cargo package errors as following:

error: failed to prepare local package for uploading

Caused by:
  values must be emitted before tables

Steps

  1. git clone https://github.com/instrumentisto/medea
  2. git checkout e4f1a07180fcd3ce97d754a7e2c4a671b71ae708
  3. cd proto/client-api/
  4. cargo package --allow-dirty --verbose

Notes

Output of cargo version:

❯ cargo version                                 
cargo 1.51.0 (43b129a20 2021-03-16)

❯ uname -a
Darwin Lilium.local 19.6.0 Darwin Kernel Version 19.6.0: Tue Jan 12 22:13:05 PST 2021; root:xnu-6153.141.16~1/RELEASE_X86_64 x86_64

It seems similar to #5906.

@ehuss
Copy link
Contributor

ehuss commented Apr 8, 2021

Thanks for the report! This has been fixed in beta (1.52) and nightly (1.53) via #9300. If there is a 1.51 point release, we plan to include it there, too. For now, you can use any version except 1.51.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-bug Category: bug
Projects
None yet
Development

No branches or pull requests

2 participants