-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Closed
Labels
A-dependency-resolutionArea: dependency resolution and the resolverArea: dependency resolution and the resolverA-patchArea: [patch] table overrideArea: [patch] table overrideC-bugCategory: bugCategory: bug
Description
Steps
- Create a package
my_packagewith a featuremy_funky_feature:# my_package/Cargo.toml [package] name = "my_package [features] my_funky_feature = []
- Create a copy of
my_packagewithout the featuremy_funky_feature:# my_package_copy/Cargo.toml [package] name = "my_package [features]
- Create yet another package
my_bin, which depends onmy_package, activates the featuremy_funky_featureof it.# my_bin/Cargo.toml [package] name = "my_bin" [dependencies] my_package = { git = "github.com/aiofwiewof/vioe", features = ["my_funky_feature"] }
- Set the copy of
my_packagewhich doesn't havemy_funky_featureas patch formy_package.# my_bin/Cargo.toml # [...] [patch."github.com/aiofwiewof/vioe"] my_package = { path = "../my_package_copy" }
- Cargo silently uses the original
my_packagewithout warning.
Possible Solution(s)
Give a warning when a patch is ignored, because there is a missing feature.
Notes
Output of cargo version:
cargo 1.33.0-nightly (2cf1f5dda 2018-12-11)
Metadata
Metadata
Assignees
Labels
A-dependency-resolutionArea: dependency resolution and the resolverArea: dependency resolution and the resolverA-patchArea: [patch] table overrideArea: [patch] table overrideC-bugCategory: bugCategory: bug