Skip to content

Commit 1498a5a

Browse files
committed
fix: bad movement path.
1 parent 7b53724 commit 1498a5a

File tree

1 file changed

+3
-14
lines changed

1 file changed

+3
-14
lines changed

migration/util/node-types/src/executor/movement_executor.rs

Lines changed: 3 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -35,23 +35,12 @@ impl MovementNode {
3535
}
3636

3737
pub async fn try_from_dir(dir: PathBuf) -> Result<Self, anyhow::Error> {
38-
let movement_args = MovementArgs { movement_path: Some(dir.clone().display().to_string()) };
39-
40-
// print the tokio::fs:metadata for the dir and dir/config.json
41-
println!("dir: {:?}", dir);
42-
let dir_metadata = tokio::fs::metadata(dir.clone()).await?;
43-
println!("dir metadata: {:?}", dir_metadata);
44-
let config_metadata = tokio::fs::metadata(dir.join("config.json")).await?;
45-
println!("config metadata: {:?}", config_metadata);
46-
47-
// because the config.json is in a nix shell, it will be reassigned read-only permissions
48-
// reassing it to be 755
49-
tokio::fs::set_permissions(dir.join("config.json"), Permissions::from_mode(0o755))
50-
.await
51-
.context("failed to reset permissions on config.json")?;
38+
let movement_args =
39+
MovementArgs { movement_path: Some(dir.join(".movement").display().to_string()) };
5240

5341
let config = movement_args.config().await.context("failed to get movement config")?;
5442
let maptos_config = config.execution_config.maptos_config;
43+
println!("maptos config: {:?}", maptos_config);
5544

5645
let (sender, _receiver) = futures_channel::mpsc::channel(1024);
5746
let opt_executor = MovementOptExecutor::try_from_config(maptos_config, sender)

0 commit comments

Comments
 (0)