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

Section [metadata] seems to no longer be produced by nightly cargo #56

Closed
dbartussek opened this issue Dec 13, 2019 · 1 comment · Fixed by #62
Closed

Section [metadata] seems to no longer be produced by nightly cargo #56

dbartussek opened this issue Dec 13, 2019 · 1 comment · Fixed by #62
Labels
bug Something isn't working

Comments

@dbartussek
Copy link

Describe the bug
It seems the nightly compiler no longer puts the hash into a metadata section, but instead in the package list at the "checksum" key. This breaks cargo deny check ban.

To Reproduce
Steps to reproduce the behavior:

  1. Initialize a new project
  2. Add any dependency
  3. Compile with nightly
  4. Initialize and run cargo deny check ban
  5. An error message "unable to find metadata section in Cargo.lock".

Expected behavior
The ban checker should probably fall back on the "checksum" field if the "metadata" section cannot be found.

@dbartussek dbartussek added the bug Something isn't working label Dec 13, 2019
@Jake-Shadle
Copy link
Member

Ahh interesting, I was aware this change was coming, luckily I am doing a separate change that I can fold a fix for this into, thanks for the report!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants