Skip to content

Commit cb72dbe

Browse files
committed
fix: ci build issues
1 parent a9dd7f0 commit cb72dbe

File tree

4 files changed

+5
-2
lines changed

4 files changed

+5
-2
lines changed

crates/pop-cli/src/commands/bench/pallet.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2001,7 +2001,7 @@ mod tests {
20012001
#[test]
20022002
fn update_runtime_path_works() -> anyhow::Result<()> {
20032003
let temp_dir = tempdir()?;
2004-
let temp_path = temp_dir.into_path();
2004+
let temp_path = temp_dir.keep();
20052005

20062006
// Create workspace structure
20072007
let workspace_toml = temp_path.join("Cargo.toml");

crates/pop-cli/src/commands/build/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ use clap::{Args, Subcommand};
99
use contract::BuildContract;
1010
use duct::cmd;
1111
use pop_common::Profile;
12+
#[cfg(feature = "contract")]
1213
use pop_contracts::MetadataSpec;
1314
use std::path::{Path, PathBuf};
1415
#[cfg(feature = "chain")]
@@ -111,7 +112,6 @@ fn collect_features(input: &str, benchmark: bool, try_runtime: bool) -> Vec<&str
111112
impl Command {
112113
/// Executes the command.
113114
pub(crate) fn execute(args: BuildArgs) -> anyhow::Result<Project> {
114-
#[cfg(any(feature = "contract", feature = "chain"))]
115115
// If only contract feature enabled, build as contract
116116
let project_path =
117117
crate::common::builds::ensure_project_path(args.path.clone(), args.path_pos.clone());

crates/pop-cli/tests/contract.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -280,6 +280,7 @@ fn generate_all_the_templates(temp_dir: &Path) -> Result<()> {
280280
let contract_name = format!("test_contract_{}", template).replace("-", "_");
281281
let contract_type = template.template_type()?.to_lowercase();
282282
// pop new chain test_parachain
283+
#[allow(deprecated)]
283284
Command::cargo_bin("pop")
284285
.unwrap()
285286
.current_dir(&temp_dir)

crates/pop-common/src/lib.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
pub use account_id::{parse_account, parse_h160_account};
66
#[cfg(feature = "integration-tests")]
7+
#[allow(deprecated)]
78
use assert_cmd::cargo::cargo_bin;
89
pub use build::Profile;
910
pub use errors::Error;
@@ -100,6 +101,7 @@ pub fn target() -> Result<&'static str, Error> {
100101
///
101102
/// A new Command instance configured to run the pop binary with the specified arguments
102103
pub fn pop(dir: &Path, args: impl IntoIterator<Item = impl AsRef<OsStr>>) -> Command {
104+
#[allow(deprecated)]
103105
let mut command = Command::new(cargo_bin("pop"));
104106
command.current_dir(dir).args(args);
105107
println!("{command:?}");

0 commit comments

Comments
 (0)