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

pytoml could not parse tar-0.4.7/Cargo.toml #20

Open
jirutka opened this issue Jul 31, 2016 · 2 comments
Open

pytoml could not parse tar-0.4.7/Cargo.toml #20

jirutka opened this issue Jul 31, 2016 · 2 comments

Comments

@jirutka
Copy link

jirutka commented Jul 31, 2016

cargo: Looking up info for tar 0.4
cargo: opening crate info: /tmp/cargo/crates.io-index/3/t/tar
cargo: best match is tar-0.4.7
cargo: failed to load toml file for: /tmp/cargo/tar-0.4.7 (/tmp/cargo/tar-0.4.7/Cargo.toml(27, 1): msg)

The problematic line is: [target.'cfg(unix)'.dependencies]

@dhduvall
Copy link

This is still an issue with pytoml 0.1.11, but I'm guessing the bug is better filed in the pytoml project (doesn't look like there's one currently).

@galexander1
Copy link
Contributor

I'm using pytoml 0.1.2 (debian gave me an old version shrug), and pytoml is able to parse that line but it parses it as target.cfg(unix).dependencies. That is, the literal string 'cfg(unix)' winds up as a dictionary key. That's probably good on pytoml's part, but then bootstrap.py ignores that dependency, and that is a nuissance. Some of these cfg(...) expressions can get pretty complicated so I'm not sure what the best remedy is.

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

3 participants