cargo-bootstrap icon indicating copy to clipboard operation
cargo-bootstrap copied to clipboard

pytoml could not parse tar-0.4.7/Cargo.toml

Open jirutka opened this issue 8 years ago • 2 comments

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]

jirutka avatar Jul 31 '16 14:07 jirutka

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).

dhduvall avatar Dec 16 '16 23:12 dhduvall

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.

galexander1 avatar Apr 09 '17 23:04 galexander1