-
Notifications
You must be signed in to change notification settings - Fork 446
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Take into account DependencyKind when collecting package target depen…
…dencies (#2235) When filtering out disabled dependencies for the Bazel targets, `collect_deps_selectable()` now takes into account the kind of dependency in question. Previously, if a disabled optional normal dependency was mandatory for a build script, it was erroneously filtered out. This change resolves #2059
- Loading branch information
1 parent
9341d1f
commit d680d81
Showing
5 changed files
with
5,632 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
209 changes: 209 additions & 0 deletions
209
crate_universe/test_data/metadata/crate_optional_deps_disabled_build_dep_enabled/Cargo.lock
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
12 changes: 12 additions & 0 deletions
12
crate_universe/test_data/metadata/crate_optional_deps_disabled_build_dep_enabled/Cargo.toml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
[package] | ||
name = "crate-with-optional-deps" | ||
version = "0.1.0" | ||
edition = "2021" # make sure resolver=2 is enabled for this test | ||
|
||
# Required to satisfy cargo but no `lib.rs` is expected to | ||
# exist within test data. | ||
[lib] | ||
path = "lib.rs" | ||
|
||
[dependencies] | ||
gherkin = "=0.13.0" |
Oops, something went wrong.