Skip to content

Adding crate a second time emits error but no exit code #7

@jayvdb

Description

@jayvdb

If the same crate is added twice, the second time there is no exit-code

runner --add flagset
error: failed to parse manifest at `/Users/john.vandenberg/.cargo/.runner/static-cache/Cargo.toml`

Caused by:
  could not parse input as TOML

Caused by:
  duplicate key: `flagset` for key `dependencies` at line 9 column 1
Error occurred - restoring Cargo.toml

It would be nicer for scripting if runner --add flagset some.rs would add flagset if it is missing, and then run some.rs.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions