-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Oliver Tale-Yazdi <[email protected]>
- Loading branch information
Showing
20 changed files
with
313 additions
and
58 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
// SPDX-FileCopyrightText: Oliver Tale-Yazdi <[email protected]> | ||
|
||
use super::{lint::CrateAndFeature, GlobalArgs}; | ||
use crate::{cmd::lint::build_feature_dag, log, prelude::Dag}; | ||
use crate::{cmd::lint::build_feature_dag, prelude::Dag}; | ||
|
||
use cargo_metadata::Metadata; | ||
use histo::Histogram; | ||
|
@@ -22,11 +22,11 @@ pub struct DebugCmd { | |
} | ||
|
||
impl DebugCmd { | ||
pub fn run(&self, _g: &GlobalArgs) { | ||
pub fn run(&self, g: &GlobalArgs) { | ||
g.warn_unstable(); | ||
let meta = self.cargo_args.load_metadata().expect("Loads metadata"); | ||
let dag = build_feature_dag(&meta, &meta.packages); | ||
|
||
log::warn!("Unstable feature - do not rely on this!"); | ||
|
||
if !self.no_root { | ||
println!("Root: {}", meta.workspace_root.to_string()); | ||
} | ||
|
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,85 @@ | ||
repo: | ||
name: polkadot-sdk | ||
ref: c86b633695299ed27053940d5ea5c5a2392964b3 | ||
cases: | ||
- cmd: transpose dependency lift-to-workspace parity-scale-codec | ||
stderr: | | ||
[WARN] Unstable feature - do not rely on this! | ||
thread 'main' panicked at ' | ||
Found 6 different versions of 'parity-scale-codec' in the workspace: | ||
^3.6.1: 244 times (frame-support, sp-api, sp-core, …) | ||
^3.0.0: 51 times (pallet-broker, cumulus-client-cli, cumulus-client-collator, …) | ||
^3.1.5: 19 times (bridge-runtime-common, bp-header-chain, bp-runtime, …) | ||
^3.2.2: 5 times (pallet-asset-conversion-tx-payment, pallet-safe-mode, pallet-tx-pause, …) | ||
^3.4.0: 4 times (asset-hub-rococo-integration-tests, integration-tests-common, asset-hub-westend-integration-tests, …) | ||
^3.6.4: 4 times (cumulus-relay-chain-interface, polkadot-node-core-prospective-parachains, cumulus-relay-chain-rpc-interface, …) | ||
Hint: cargo upgrade -p [email protected] | ||
', src/cmd/transpose.rs:127:13 | ||
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace | ||
code: 101 | ||
- cmd: transpose dependency lift-to-workspace log | ||
stderr: | | ||
[WARN] Unstable feature - do not rely on this! | ||
thread 'main' panicked at ' | ||
Found 8 different versions of 'log' in the workspace: | ||
^0.4.17: 135 times (frame-support, sp-api, sp-core, …) | ||
^0.4.20: 28 times (bridge-runtime-common, pallet-bridge-grandpa, pallet-bridge-messages, …) | ||
^0.4 : 7 times (sc-utils, pallet-contracts, substrate-rpc-client, …) | ||
^0.4.16: 4 times (sc-network-light, pallet-core-fellowship, pallet-ranked-collective, …) | ||
^0.4.14: 4 times (pallet-alliance, pallet-elections-phragmen, pallet-glutton, …) | ||
^0.4.0 : 2 times (pallet-nomination-pools, pallet-nomination-pools-test-staking) | ||
^0.4.19: 2 times (bp-runtime, parachains-common) | ||
^0.4.8 : 1 time (sc-consensus-grandpa-rpc) | ||
Hint: cargo upgrade -p [email protected] | ||
', src/cmd/transpose.rs:127:13 | ||
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace | ||
code: 101 | ||
- cmd: zepter transpose dependency lift-to-workspace macro_magic | ||
stderr: | | ||
[WARN] Unstable feature - do not rely on this! | ||
diff: | | ||
diff --git Cargo.toml Cargo.toml | ||
index c98fe6d1a3..229870c266 100644 | ||
--- Cargo.toml | ||
+++ Cargo.toml | ||
@@ -6,0 +7,3 @@ license = "GPL-3.0-only" | ||
+[workspace.dependencies] | ||
+macro_magic = { version = "^0.5.0", default-features = false } | ||
+ | ||
diff --git substrate/frame/support/Cargo.toml substrate/frame/support/Cargo.toml | ||
index 5caf993bb3..8259257314 100644 | ||
--- substrate/frame/support/Cargo.toml | ||
+++ substrate/frame/support/Cargo.toml | ||
@@ -33 +33 @@ tt-call = "1.0.8" | ||
-macro_magic = "0.5.0" | ||
+macro_magic = { workspace = true, default-features = true } | ||
diff --git substrate/frame/support/procedural/Cargo.toml substrate/frame/support/procedural/Cargo.toml | ||
index 45ed1750a5..0e5400b0ac 100644 | ||
--- substrate/frame/support/procedural/Cargo.toml | ||
+++ substrate/frame/support/procedural/Cargo.toml | ||
@@ -26 +26 @@ frame-support-procedural-tools = { path = "tools" } | ||
-macro_magic = { version = "0.5.0", features = ["proc_support"] } | ||
+macro_magic = { features = ["proc_support"] , workspace = true, default-features = true } | ||
- cmd: zepter transpose dependency lift-to-workspace tt-call | ||
stderr: | | ||
[WARN] Unstable feature - do not rely on this! | ||
diff: | | ||
diff --git Cargo.toml Cargo.toml | ||
index c98fe6d1a3..42db4817d6 100644 | ||
--- Cargo.toml | ||
+++ Cargo.toml | ||
@@ -6,0 +7,3 @@ license = "GPL-3.0-only" | ||
+[workspace.dependencies] | ||
+tt-call = { version = "^1.0.8", default-features = false } | ||
+ | ||
diff --git substrate/frame/support/Cargo.toml substrate/frame/support/Cargo.toml | ||
index 5caf993bb3..eb2562ff86 100644 | ||
--- substrate/frame/support/Cargo.toml | ||
+++ substrate/frame/support/Cargo.toml | ||
@@ -32 +32 @@ sp-metadata-ir = { path = "../../primitives/metadata-ir", default-features = fal | ||
-tt-call = "1.0.8" | ||
+tt-call = { workspace = true, default-features = true } |
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,15 @@ | ||
repo: | ||
name: polkadot-sdk | ||
ref: c86b633695299ed27053940d5ea5c5a2392964b3 | ||
cases: | ||
- cmd: run check | ||
stderr: | | ||
[INFO] Running workflow 'check' | ||
[INFO] 1/2 lint propagate-feature | ||
[INFO] 2/2 format features | ||
- cmd: run default | ||
stderr: | | ||
[INFO] Running workflow 'default' | ||
[INFO] 1/2 lint propagate-feature | ||
[INFO] 2/2 format features | ||
no_default_args: true |
Oops, something went wrong.