You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This new format will be used for all new lockfiles, while existing lockfiles will still rely on the previous format. You can learn about the choices leading to the new format in the PR adding it.
The error I got using the new script with a new Cargo.lock file was:
$ python3 flatpak-cargo-generator.py Cargo.lock -o cargo-sources.json
Traceback (most recent call last):
File "flatpak-cargo-generator.py", line 216, in <module>
main()
File "flatpak-cargo-generator.py", line 210, in main
generated_sources = generate_sources(load_cargo_lock(args.cargo_lock))
File "flatpak-cargo-generator.py", line 68, in generate_sources
metadata = cargo_lock['metadata']
KeyError: 'metadata'
The text was updated successfully, but these errors were encountered:
I tried to use the flatpak-cargo-generator script for a new rust project and realized it doesn't support the new rust 1.41 cargo.lock format:
https://blog.rust-lang.org/2020/01/30/Rust-1.41.0.html#whats-in-1.41.0-stable
https://blog.rust-lang.org/2020/01/30/Rust-1.41.0.html#less-conflict-prone-cargolock-format
The error I got using the new script with a new Cargo.lock file was:
The text was updated successfully, but these errors were encountered: