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 apk returns Error: Failed to parse config when Cargo version inherits from workspace #359

Closed
Nicolas-Ferre opened this issue Nov 5, 2022 · 2 comments · Fixed by #360

Comments

@Nicolas-Ferre
Copy link

Since Rust 1.64.0, it is possible to inherit some package properties from the workspace.
This feature seems not yet supported by Cargo apk for the package.version property.

For example, running the command cargo apk run --package my_package in a workspace returns the following error:

Error: Failed to parse config.

Caused by:
    invalid type: map, expected a string for key `package.version` at line 3 column 21

Where the Cargo.toml file of my_package is:

[package]
name = "my_package"
version.workspace = true
@MarijnS95
Copy link
Member

We just started using these internally too, and are working on parser support for it.

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

Successfully merging a pull request may close this issue.

2 participants