Cargo apk returns `Error: Failed to parse config` when Cargo version inherits from workspace
Nicolas-Ferre opened this issue · 2 comments
Nicolas-Ferre commented
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 commented
We just started using these internally too, and are working on parser support for it.