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: TomlDecodeError when attempting to parse Cargo.lock for rustdesk #384

Open
joshua-stone opened this issue Dec 20, 2023 · 0 comments
Labels

Comments

@joshua-stone
Copy link

flatpak-builder version

1.3.1

Linux distribution and version

Fedora 39

Affected flatpak-builder tool

cargo/flatpak-cargo-generator.py

flatpak-builder tool cli args

python3 ./flatpak-cargo-generator.py Cargo.lock --output generated-sources.json

Source repository URL

https://github.com/rustdesk/rustdesk

Flatpak-builder manifest URL

https://gist.github.com/joshua-stone/d0e706b8772336f760de174424475f71

Description

Running python3 ./flatpak-cargo-generator.py Cargo.lock --output generated-sources.json for rustdesk will result in the the following error:

toml.decoder.TomlDecodeError: An implicitly defined table can't be an array (line 64 column 1 char 1903)

If I remove the cacao package from Cargo.lock, then sources will successfully generate:

[[package]]
name = "cacao"
version = "0.4.0-beta2"
source = "git+https://github.com/clslaid/cacao?branch=feat/set-file-urls#05e1536b0b43aaae308ec72c0eed703e875b7b95"
dependencies = [
 "bitmask-enum",
 "block2",
 "core-foundation 0.9.3 (git+https://github.com/madsmtm/core-foundation-rs.git?rev=7d593d016175755e492a92ef89edca68ac3bd5cd)",
 "core-graphics 0.23.1",
 "dispatch",
 "lazy_static",
 "libc",
 "objc2",
 "os_info",
 "percent-encoding",
 "url",
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant