Skip to content

Commit

Permalink
Use deterministic commit hash len on UI tests
Browse files Browse the repository at this point in the history
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>
  • Loading branch information
ggwpez committed Jul 24, 2023
1 parent 03a7e7a commit c33c266
Show file tree
Hide file tree
Showing 8 changed files with 25 additions and 24 deletions.
1 change: 1 addition & 0 deletions src/mock.rs
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ pub fn git_diff(dir: &Path) -> Result<String, Box<dyn std::error::Error>> {
let mut cmd = Command::new("git");
cmd.current_dir(dir);
cmd.arg("diff");
cmd.arg("--abbrev=6"); // Pick a deterministic commit hash len.
cmd.arg("--patch");
cmd.arg("--no-color");
cmd.arg("--minimal");
Expand Down
2 changes: 1 addition & 1 deletion tests/integration/polkadot/issue-7261.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@ cases:
sp-mmr-primitives
sp-trie
Found 5 issues and fixed 5.
diff: "diff --git runtime/test-runtime/Cargo.toml runtime/test-runtime/Cargo.toml\nindex 6d38a02..4637dff 100644\n--- runtime/test-runtime/Cargo.toml\n+++ runtime/test-runtime/Cargo.toml\n@@ -128,6 +128,12 @@ std = [\n \t\"log/std\",\n \t\"frame-election-provider-support/std\",\n \t\"pallet-sudo/std\",\n+\t\"polkadot-runtime-parachains/std\",\n+\t\"serde_json/std\",\n+\t\"beefy-primitives/std\",\n+\t\"sp-mmr-primitives/std\",\n+\t\"sp-trie/std\"\n+,\n ]\n \n runtime-benchmarks = [\n"
diff: "diff --git runtime/test-runtime/Cargo.toml runtime/test-runtime/Cargo.toml\nindex 6d38a0..4637df 100644\n--- runtime/test-runtime/Cargo.toml\n+++ runtime/test-runtime/Cargo.toml\n@@ -128,6 +128,12 @@ std = [\n \t\"log/std\",\n \t\"frame-election-provider-support/std\",\n \t\"pallet-sudo/std\",\n+\t\"polkadot-runtime-parachains/std\",\n+\t\"serde_json/std\",\n+\t\"beefy-primitives/std\",\n+\t\"sp-mmr-primitives/std\",\n+\t\"sp-trie/std\"\n+,\n ]\n \n runtime-benchmarks = [\n"
6 changes: 3 additions & 3 deletions tests/integration/polkadot/issue-7537.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ cases:
environmental
frame-benchmarking
Found 2 issues and fixed 2.
diff: "diff --git xcm/xcm-executor/Cargo.toml xcm/xcm-executor/Cargo.toml\nindex 41463bb..5a57a13 100644\n--- xcm/xcm-executor/Cargo.toml\n+++ xcm/xcm-executor/Cargo.toml\n@@ -36,4 +36,7 @@ std = [\n \t\"sp-weights/std\",\n \t\"frame-support/std\",\n \t\"log/std\",\n+\t\"environmental/std\",\n+\t\"frame-benchmarking?/std\"\n+,\n ]\n"
diff: "diff --git xcm/xcm-executor/Cargo.toml xcm/xcm-executor/Cargo.toml\nindex 41463b..5a57a1 100644\n--- xcm/xcm-executor/Cargo.toml\n+++ xcm/xcm-executor/Cargo.toml\n@@ -36,4 +36,7 @@ std = [\n \t\"sp-weights/std\",\n \t\"frame-support/std\",\n \t\"log/std\",\n+\t\"environmental/std\",\n+\t\"frame-benchmarking?/std\"\n+,\n ]\n"
- cmd: lint propagate-feature -p xcm-executor --feature runtime-benchmarks --fix
stdout: |
crate "xcm-executor"
Expand All @@ -19,7 +19,7 @@ cases:
frame-support
sp-runtime
Found 2 issues and fixed 2.
diff: "diff --git xcm/xcm-executor/Cargo.toml xcm/xcm-executor/Cargo.toml\nindex 41463bb..e330e8f 100644\n--- xcm/xcm-executor/Cargo.toml\n+++ xcm/xcm-executor/Cargo.toml\n@@ -24,6 +24,9 @@ frame-benchmarking = { git = \"https://github.com/paritytech/substrate\", branch =\n default = [\"std\"]\n runtime-benchmarks = [\n \t\"frame-benchmarking/runtime-benchmarks\",\n+\t\"frame-support/runtime-benchmarks\",\n+\t\"sp-runtime/runtime-benchmarks\"\n+,\n ]\n std = [\n \t\"parity-scale-codec/std\",\n"
diff: "diff --git xcm/xcm-executor/Cargo.toml xcm/xcm-executor/Cargo.toml\nindex 41463b..e330e8 100644\n--- xcm/xcm-executor/Cargo.toml\n+++ xcm/xcm-executor/Cargo.toml\n@@ -24,6 +24,9 @@ frame-benchmarking = { git = \"https://github.com/paritytech/substrate\", branch =\n default = [\"std\"]\n runtime-benchmarks = [\n \t\"frame-benchmarking/runtime-benchmarks\",\n+\t\"frame-support/runtime-benchmarks\",\n+\t\"sp-runtime/runtime-benchmarks\"\n+,\n ]\n std = [\n \t\"parity-scale-codec/std\",\n"
- cmd: lint propagate-feature -p xcm-executor --feature runtime-benchmarks --fix --feature-enables-dep "runtime-benchmarks:frame-benchmarking"
stdout: |
crate "xcm-executor"
Expand All @@ -28,4 +28,4 @@ cases:
frame-support
sp-runtime
Found 2 issues and fixed 2.
diff: "diff --git xcm/xcm-executor/Cargo.toml xcm/xcm-executor/Cargo.toml\nindex 41463bb..e330e8f 100644\n--- xcm/xcm-executor/Cargo.toml\n+++ xcm/xcm-executor/Cargo.toml\n@@ -24,6 +24,9 @@ frame-benchmarking = { git = \"https://github.com/paritytech/substrate\", branch =\n default = [\"std\"]\n runtime-benchmarks = [\n \t\"frame-benchmarking/runtime-benchmarks\",\n+\t\"frame-support/runtime-benchmarks\",\n+\t\"sp-runtime/runtime-benchmarks\"\n+,\n ]\n std = [\n \t\"parity-scale-codec/std\",\n"
diff: "diff --git xcm/xcm-executor/Cargo.toml xcm/xcm-executor/Cargo.toml\nindex 41463b..e330e8 100644\n--- xcm/xcm-executor/Cargo.toml\n+++ xcm/xcm-executor/Cargo.toml\n@@ -24,6 +24,9 @@ frame-benchmarking = { git = \"https://github.com/paritytech/substrate\", branch =\n default = [\"std\"]\n runtime-benchmarks = [\n \t\"frame-benchmarking/runtime-benchmarks\",\n+\t\"frame-support/runtime-benchmarks\",\n+\t\"sp-runtime/runtime-benchmarks\"\n+,\n ]\n std = [\n \t\"parity-scale-codec/std\",\n"
8 changes: 4 additions & 4 deletions tests/integration/substrate/frame-pallets.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ cases:
pallet-preimage
pallet-scheduler
Found 4 issues and fixed 4.
diff: "diff --git frame/referenda/Cargo.toml frame/referenda/Cargo.toml\nindex a89f641e..800a171f 100644\n--- frame/referenda/Cargo.toml\n+++ frame/referenda/Cargo.toml\n@@ -56,5 +56,10 @@ runtime-benchmarks = [\n \t\"frame-support/runtime-benchmarks\",\n \t\"frame-system/runtime-benchmarks\",\n \t\"sp-runtime/runtime-benchmarks\",\n+\t\"frame-benchmarking/runtime-benchmarks\",\n+\t\"pallet-balances/runtime-benchmarks\",\n+\t\"pallet-preimage/runtime-benchmarks\",\n+\t\"pallet-scheduler/runtime-benchmarks\"\n+,\n ]\n try-runtime = [\"frame-support/try-runtime\"]\n"
diff: "diff --git frame/referenda/Cargo.toml frame/referenda/Cargo.toml\nindex a89f64..800a17 100644\n--- frame/referenda/Cargo.toml\n+++ frame/referenda/Cargo.toml\n@@ -56,5 +56,10 @@ runtime-benchmarks = [\n \t\"frame-support/runtime-benchmarks\",\n \t\"frame-system/runtime-benchmarks\",\n \t\"sp-runtime/runtime-benchmarks\",\n+\t\"frame-benchmarking/runtime-benchmarks\",\n+\t\"pallet-balances/runtime-benchmarks\",\n+\t\"pallet-preimage/runtime-benchmarks\",\n+\t\"pallet-scheduler/runtime-benchmarks\"\n+,\n ]\n try-runtime = [\"frame-support/try-runtime\"]\n"
- cmd: lint propagate-feature -p frame-support --feature runtime-benchmarks -p pallet-referenda --fix --feature-enables-dep "runtime-benchmarks:frame-benchmarking"
stdout: |
crate "pallet-referenda"
Expand All @@ -23,7 +23,7 @@ cases:
pallet-preimage
pallet-scheduler
Found 4 issues and fixed 4.
diff: "diff --git frame/referenda/Cargo.toml frame/referenda/Cargo.toml\nindex a89f641e..800a171f 100644\n--- frame/referenda/Cargo.toml\n+++ frame/referenda/Cargo.toml\n@@ -56,5 +56,10 @@ runtime-benchmarks = [\n \t\"frame-support/runtime-benchmarks\",\n \t\"frame-system/runtime-benchmarks\",\n \t\"sp-runtime/runtime-benchmarks\",\n+\t\"frame-benchmarking/runtime-benchmarks\",\n+\t\"pallet-balances/runtime-benchmarks\",\n+\t\"pallet-preimage/runtime-benchmarks\",\n+\t\"pallet-scheduler/runtime-benchmarks\"\n+,\n ]\n try-runtime = [\"frame-support/try-runtime\"]\n"
diff: "diff --git frame/referenda/Cargo.toml frame/referenda/Cargo.toml\nindex a89f64..800a17 100644\n--- frame/referenda/Cargo.toml\n+++ frame/referenda/Cargo.toml\n@@ -56,5 +56,10 @@ runtime-benchmarks = [\n \t\"frame-support/runtime-benchmarks\",\n \t\"frame-system/runtime-benchmarks\",\n \t\"sp-runtime/runtime-benchmarks\",\n+\t\"frame-benchmarking/runtime-benchmarks\",\n+\t\"pallet-balances/runtime-benchmarks\",\n+\t\"pallet-preimage/runtime-benchmarks\",\n+\t\"pallet-scheduler/runtime-benchmarks\"\n+,\n ]\n try-runtime = [\"frame-support/try-runtime\"]\n"
- cmd: lint propagate-feature -p frame-support --feature runtime-benchmarks -p pallet-referenda --fix
stdout: |
crate "pallet-referenda"
Expand All @@ -34,7 +34,7 @@ cases:
pallet-preimage
pallet-scheduler
Found 4 issues and fixed 4.
diff: "diff --git frame/referenda/Cargo.toml frame/referenda/Cargo.toml\nindex a89f641e..1f524880 100644\n--- frame/referenda/Cargo.toml\n+++ frame/referenda/Cargo.toml\n@@ -56,5 +56,10 @@ runtime-benchmarks = [\n \t\"frame-support/runtime-benchmarks\",\n \t\"frame-system/runtime-benchmarks\",\n \t\"sp-runtime/runtime-benchmarks\",\n+\t\"frame-benchmarking?/runtime-benchmarks\",\n+\t\"pallet-balances/runtime-benchmarks\",\n+\t\"pallet-preimage/runtime-benchmarks\",\n+\t\"pallet-scheduler/runtime-benchmarks\"\n+,\n ]\n try-runtime = [\"frame-support/try-runtime\"]\n"
diff: "diff --git frame/referenda/Cargo.toml frame/referenda/Cargo.toml\nindex a89f64..1f5248 100644\n--- frame/referenda/Cargo.toml\n+++ frame/referenda/Cargo.toml\n@@ -56,5 +56,10 @@ runtime-benchmarks = [\n \t\"frame-support/runtime-benchmarks\",\n \t\"frame-system/runtime-benchmarks\",\n \t\"sp-runtime/runtime-benchmarks\",\n+\t\"frame-benchmarking?/runtime-benchmarks\",\n+\t\"pallet-balances/runtime-benchmarks\",\n+\t\"pallet-preimage/runtime-benchmarks\",\n+\t\"pallet-scheduler/runtime-benchmarks\"\n+,\n ]\n try-runtime = [\"frame-support/try-runtime\"]\n"
- cmd: lint propagate-feature --feature try-runtime -p pallet-referenda --fix
stdout: |
crate "pallet-referenda"
Expand All @@ -46,4 +46,4 @@ cases:
pallet-scheduler
sp-runtime
Found 5 issues and fixed 5.
diff: "diff --git frame/referenda/Cargo.toml frame/referenda/Cargo.toml\nindex a89f641e..405baea4 100644\n--- frame/referenda/Cargo.toml\n+++ frame/referenda/Cargo.toml\n@@ -57,4 +57,11 @@ runtime-benchmarks = [\n \t\"frame-system/runtime-benchmarks\",\n \t\"sp-runtime/runtime-benchmarks\",\n ]\n-try-runtime = [\"frame-support/try-runtime\"]\n+try-runtime = [\n+\t\"frame-support/try-runtime\",\n+\t\"frame-system/try-runtime\",\n+\t\"pallet-balances/try-runtime\",\n+\t\"pallet-preimage/try-runtime\",\n+\t\"pallet-scheduler/try-runtime\",\n+\t\"sp-runtime/try-runtime\"\n+]\n"
diff: "diff --git frame/referenda/Cargo.toml frame/referenda/Cargo.toml\nindex a89f64..405bae 100644\n--- frame/referenda/Cargo.toml\n+++ frame/referenda/Cargo.toml\n@@ -57,4 +57,11 @@ runtime-benchmarks = [\n \t\"frame-system/runtime-benchmarks\",\n \t\"sp-runtime/runtime-benchmarks\",\n ]\n-try-runtime = [\"frame-support/try-runtime\"]\n+try-runtime = [\n+\t\"frame-support/try-runtime\",\n+\t\"frame-system/try-runtime\",\n+\t\"pallet-balances/try-runtime\",\n+\t\"pallet-preimage/try-runtime\",\n+\t\"pallet-scheduler/try-runtime\",\n+\t\"sp-runtime/try-runtime\"\n+]\n"
8 changes: 4 additions & 4 deletions tests/ui/lint/propagate-feature/fix_not_propagated.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,15 @@ cases:
must propagate to:
B
Found 1 issue and fixed 1.
diff: "diff --git A/Cargo.toml A/Cargo.toml\nindex cf8d3d5..5b371b2 100644\n--- A/Cargo.toml\n+++ A/Cargo.toml\n@@ -10,4 +10,6 @@ B = { version = \"*\", path = \"../B\"}\n \n [features]\n F0 = [\n+\t\"B/F0\"\n+\n ]\n"
diff: "diff --git A/Cargo.toml A/Cargo.toml\nindex cf8d3d..5b371b 100644\n--- A/Cargo.toml\n+++ A/Cargo.toml\n@@ -10,4 +10,6 @@ B = { version = \"*\", path = \"../B\"}\n \n [features]\n F0 = [\n+\t\"B/F0\"\n+\n ]\n"
- cmd: lint propagate-feature -p A --feature F0 --fix
stdout: |
crate "A"
feature "F0"
must propagate to:
B
Found 1 issue and fixed 1.
diff: "diff --git A/Cargo.toml A/Cargo.toml\nindex cf8d3d5..5b371b2 100644\n--- A/Cargo.toml\n+++ A/Cargo.toml\n@@ -10,4 +10,6 @@ B = { version = \"*\", path = \"../B\"}\n \n [features]\n F0 = [\n+\t\"B/F0\"\n+\n ]\n"
diff: "diff --git A/Cargo.toml A/Cargo.toml\nindex cf8d3d..5b371b 100644\n--- A/Cargo.toml\n+++ A/Cargo.toml\n@@ -10,4 +10,6 @@ B = { version = \"*\", path = \"../B\"}\n \n [features]\n F0 = [\n+\t\"B/F0\"\n+\n ]\n"
- cmd: lint propagate-feature -p B --feature F0 --fix
stdout: |
Found no issues.
Expand All @@ -37,15 +37,15 @@ cases:
must propagate to:
B
Found 1 issue and fixed 1.
diff: "diff --git A/Cargo.toml A/Cargo.toml\nindex cf8d3d5..5b371b2 100644\n--- A/Cargo.toml\n+++ A/Cargo.toml\n@@ -10,4 +10,6 @@ B = { version = \"*\", path = \"../B\"}\n \n [features]\n F0 = [\n+\t\"B/F0\"\n+\n ]\n"
diff: "diff --git A/Cargo.toml A/Cargo.toml\nindex cf8d3d..5b371b 100644\n--- A/Cargo.toml\n+++ A/Cargo.toml\n@@ -10,4 +10,6 @@ B = { version = \"*\", path = \"../B\"}\n \n [features]\n F0 = [\n+\t\"B/F0\"\n+\n ]\n"
- cmd: lint propagate-feature -p A --feature F0 --workspace --fix
stdout: |
crate "A"
feature "F0"
must propagate to:
B
Found 1 issue and fixed 1.
diff: "diff --git A/Cargo.toml A/Cargo.toml\nindex cf8d3d5..5b371b2 100644\n--- A/Cargo.toml\n+++ A/Cargo.toml\n@@ -10,4 +10,6 @@ B = { version = \"*\", path = \"../B\"}\n \n [features]\n F0 = [\n+\t\"B/F0\"\n+\n ]\n"
diff: "diff --git A/Cargo.toml A/Cargo.toml\nindex cf8d3d..5b371b 100644\n--- A/Cargo.toml\n+++ A/Cargo.toml\n@@ -10,4 +10,6 @@ B = { version = \"*\", path = \"../B\"}\n \n [features]\n F0 = [\n+\t\"B/F0\"\n+\n ]\n"
- cmd: lint propagate-feature -p B --feature F0 --workspace --fix
stdout: |
Found no issues.
Expand Down
8 changes: 4 additions & 4 deletions tests/ui/lint/propagate-feature/fix_not_propagated_opt.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,15 @@ cases:
must propagate to:
B
Found 1 issue and fixed 1.
diff: "diff --git A/Cargo.toml A/Cargo.toml\nindex b30994c..2b554d8 100644\n--- A/Cargo.toml\n+++ A/Cargo.toml\n@@ -10,4 +10,6 @@ B = { version = \"*\", path = \"../B\", optional = true}\n \n [features]\n F0 = [\n+\t\"B?/F0\"\n+\n ]\n"
diff: "diff --git A/Cargo.toml A/Cargo.toml\nindex b30994..2b554d 100644\n--- A/Cargo.toml\n+++ A/Cargo.toml\n@@ -10,4 +10,6 @@ B = { version = \"*\", path = \"../B\", optional = true}\n \n [features]\n F0 = [\n+\t\"B?/F0\"\n+\n ]\n"
- cmd: lint propagate-feature -p A --feature F0 --fix
stdout: |
crate "A"
feature "F0"
must propagate to:
B
Found 1 issue and fixed 1.
diff: "diff --git A/Cargo.toml A/Cargo.toml\nindex b30994c..2b554d8 100644\n--- A/Cargo.toml\n+++ A/Cargo.toml\n@@ -10,4 +10,6 @@ B = { version = \"*\", path = \"../B\", optional = true}\n \n [features]\n F0 = [\n+\t\"B?/F0\"\n+\n ]\n"
diff: "diff --git A/Cargo.toml A/Cargo.toml\nindex b30994..2b554d 100644\n--- A/Cargo.toml\n+++ A/Cargo.toml\n@@ -10,4 +10,6 @@ B = { version = \"*\", path = \"../B\", optional = true}\n \n [features]\n F0 = [\n+\t\"B?/F0\"\n+\n ]\n"
- cmd: lint propagate-feature -p B --feature F0 --fix
stdout: |
Found no issues.
Expand All @@ -38,15 +38,15 @@ cases:
must propagate to:
B
Found 1 issue and fixed 1.
diff: "diff --git A/Cargo.toml A/Cargo.toml\nindex b30994c..2b554d8 100644\n--- A/Cargo.toml\n+++ A/Cargo.toml\n@@ -10,4 +10,6 @@ B = { version = \"*\", path = \"../B\", optional = true}\n \n [features]\n F0 = [\n+\t\"B?/F0\"\n+\n ]\n"
diff: "diff --git A/Cargo.toml A/Cargo.toml\nindex b30994..2b554d 100644\n--- A/Cargo.toml\n+++ A/Cargo.toml\n@@ -10,4 +10,6 @@ B = { version = \"*\", path = \"../B\", optional = true}\n \n [features]\n F0 = [\n+\t\"B?/F0\"\n+\n ]\n"
- cmd: lint propagate-feature -p A --feature F0 --workspace --fix
stdout: |
crate "A"
feature "F0"
must propagate to:
B
Found 1 issue and fixed 1.
diff: "diff --git A/Cargo.toml A/Cargo.toml\nindex b30994c..2b554d8 100644\n--- A/Cargo.toml\n+++ A/Cargo.toml\n@@ -10,4 +10,6 @@ B = { version = \"*\", path = \"../B\", optional = true}\n \n [features]\n F0 = [\n+\t\"B?/F0\"\n+\n ]\n"
diff: "diff --git A/Cargo.toml A/Cargo.toml\nindex b30994..2b554d 100644\n--- A/Cargo.toml\n+++ A/Cargo.toml\n@@ -10,4 +10,6 @@ B = { version = \"*\", path = \"../B\", optional = true}\n \n [features]\n F0 = [\n+\t\"B?/F0\"\n+\n ]\n"
- cmd: lint propagate-feature -p B --feature F0 --workspace --fix
stdout: |
Found no issues.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,15 @@ cases:
must propagate to:
b (renamed from B)
Found 1 issue and fixed 1.
diff: "diff --git A/Cargo.toml A/Cargo.toml\nindex ada36d9..8a08766 100644\n--- A/Cargo.toml\n+++ A/Cargo.toml\n@@ -10,4 +10,6 @@ b = { package = \"B\", version = \"*\", path = \"../B\", optional = true}\n \n [features]\n F0 = [\n+\t\"b?/F0\"\n+\n ]\n"
diff: "diff --git A/Cargo.toml A/Cargo.toml\nindex ada36d..8a0876 100644\n--- A/Cargo.toml\n+++ A/Cargo.toml\n@@ -10,4 +10,6 @@ b = { package = \"B\", version = \"*\", path = \"../B\", optional = true}\n \n [features]\n F0 = [\n+\t\"b?/F0\"\n+\n ]\n"
- cmd: lint propagate-feature -p A --feature F0 --fix
stdout: |
crate "A"
feature "F0"
must propagate to:
b (renamed from B)
Found 1 issue and fixed 1.
diff: "diff --git A/Cargo.toml A/Cargo.toml\nindex ada36d9..8a08766 100644\n--- A/Cargo.toml\n+++ A/Cargo.toml\n@@ -10,4 +10,6 @@ b = { package = \"B\", version = \"*\", path = \"../B\", optional = true}\n \n [features]\n F0 = [\n+\t\"b?/F0\"\n+\n ]\n"
diff: "diff --git A/Cargo.toml A/Cargo.toml\nindex ada36d..8a0876 100644\n--- A/Cargo.toml\n+++ A/Cargo.toml\n@@ -10,4 +10,6 @@ b = { package = \"B\", version = \"*\", path = \"../B\", optional = true}\n \n [features]\n F0 = [\n+\t\"b?/F0\"\n+\n ]\n"
- cmd: lint propagate-feature -p B --feature F0 --fix
stdout: |
Found no issues.
Expand All @@ -39,15 +39,15 @@ cases:
must propagate to:
b (renamed from B)
Found 1 issue and fixed 1.
diff: "diff --git A/Cargo.toml A/Cargo.toml\nindex ada36d9..8a08766 100644\n--- A/Cargo.toml\n+++ A/Cargo.toml\n@@ -10,4 +10,6 @@ b = { package = \"B\", version = \"*\", path = \"../B\", optional = true}\n \n [features]\n F0 = [\n+\t\"b?/F0\"\n+\n ]\n"
diff: "diff --git A/Cargo.toml A/Cargo.toml\nindex ada36d..8a0876 100644\n--- A/Cargo.toml\n+++ A/Cargo.toml\n@@ -10,4 +10,6 @@ b = { package = \"B\", version = \"*\", path = \"../B\", optional = true}\n \n [features]\n F0 = [\n+\t\"b?/F0\"\n+\n ]\n"
- cmd: lint propagate-feature -p A --feature F0 --workspace --fix
stdout: |
crate "A"
feature "F0"
must propagate to:
b (renamed from B)
Found 1 issue and fixed 1.
diff: "diff --git A/Cargo.toml A/Cargo.toml\nindex ada36d9..8a08766 100644\n--- A/Cargo.toml\n+++ A/Cargo.toml\n@@ -10,4 +10,6 @@ b = { package = \"B\", version = \"*\", path = \"../B\", optional = true}\n \n [features]\n F0 = [\n+\t\"b?/F0\"\n+\n ]\n"
diff: "diff --git A/Cargo.toml A/Cargo.toml\nindex ada36d..8a0876 100644\n--- A/Cargo.toml\n+++ A/Cargo.toml\n@@ -10,4 +10,6 @@ b = { package = \"B\", version = \"*\", path = \"../B\", optional = true}\n \n [features]\n F0 = [\n+\t\"b?/F0\"\n+\n ]\n"
- cmd: lint propagate-feature -p B --feature F0 --workspace --fix
stdout: |
Found no issues.
Expand Down
Loading

0 comments on commit c33c266

Please sign in to comment.