Skip to content

Commit 43ad8be

Browse files
authored
CLI - Remove deprecated use of the --project-path flag (#915)
Co-authored-by: Zeke Foppa <github.com/bfops> Co-authored-by: Zeke Foppa <[email protected]>
1 parent da0f83b commit 43ad8be

File tree

3 files changed

+3
-11
lines changed

3 files changed

+3
-11
lines changed

crates/cli/src/subcommands/generate/mod.rs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -122,11 +122,7 @@ pub async fn exec(config: Config, args: &clap::ArgMatches) -> anyhow::Result<()>
122122
};
123123
module
124124
} else {
125-
let wasm_path = if !project_path.is_dir() && project_path.extension().map_or(false, |ext| ext == "wasm") {
126-
println!("Note: Using --project-path to provide a wasm file is deprecated, and will be");
127-
println!("removed in a future release. Please use --bin-path instead.");
128-
project_path.clone()
129-
} else if let Some(path) = wasm_file {
125+
let wasm_path = if let Some(path) = wasm_file {
130126
println!("Skipping build. Instead we are inspecting {}", path.display());
131127
path.clone()
132128
} else {

crates/cli/src/subcommands/publish.rs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -102,11 +102,7 @@ pub async fn exec(config: Config, args: &ArgMatches) -> Result<(), anyhow::Error
102102
));
103103
}
104104

105-
let path_to_wasm = if !path_to_project.is_dir() && path_to_project.extension().map_or(false, |ext| ext == "wasm") {
106-
println!("Note: Using --project-path to provide a wasm file is deprecated, and will be");
107-
println!("removed in a future release. Please use --bin-path instead.");
108-
path_to_project.clone()
109-
} else if let Some(path) = wasm_file {
105+
let path_to_wasm = if let Some(path) = wasm_file {
110106
println!("Skipping build. Instead we are publishing {}", path.display());
111107
path.clone()
112108
} else {

crates/client-api/src/routes/tracelog.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,12 @@ use serde::Deserialize;
66
use tempfile::TempDir;
77

88
use spacetimedb::address::Address;
9-
use spacetimedb::replica_context::ReplicaContext;
109
use spacetimedb::db::Storage;
1110
use spacetimedb::hash::hash_bytes;
1211
use spacetimedb::host::instance_env::InstanceEnv;
1312
use spacetimedb::host::tracelog::replay::replay_report;
1413
use spacetimedb::host::Scheduler;
14+
use spacetimedb::replica_context::ReplicaContext;
1515
use spacetimedb_lib::Identity;
1616

1717
use crate::{log_and_500, ControlStateReadAccess, NodeDelegate};

0 commit comments

Comments
 (0)