You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Create a Rust crate Cargo.toml with a target-specific dependency that uses path but no version, for example: [target.'cfg(target_os = "linux")'.dependencies] internal-metrics = { path = "../internal-metrics", features = ["heap"] }
Run release-please with the cargo-workspace plugin so CargoToml.updateContent attempts to update that dependency via versionsMap.
Observe release-please trying to update: target.cfg(target_os = "linux").dependencies.internal-metrics.version
It fails with: path not found in object: target.cfg(target_os = "linux").dependencies.internal-metrics.version
Environment details
release-pleaseversion: 17.2.0Steps to reproduce
Cargo.tomlwith a target-specific dependency that usespathbut noversion, for example:[target.'cfg(target_os = "linux")'.dependencies]internal-metrics = { path = "../internal-metrics", features = ["heap"] }cargo-workspaceplugin soCargoToml.updateContentattempts to update that dependency viaversionsMap.target.cfg(target_os = "linux").dependencies.internal-metrics.versionpath not found in object: target.cfg(target_os = "linux").dependencies.internal-metrics.version