Skip to content

Commit 336e52e

Browse files
committed
chore: fix deconstruction.
1 parent c12575a commit 336e52e

File tree

6 files changed

+18
-17
lines changed

6 files changed

+18
-17
lines changed

Cargo.lock

Lines changed: 0 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

checks/node/checks/movement-mainnet/Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ mtma-node-test-global-storage-includes-criterion = { workspace = true }
1616
movement-syncing = { workspace = true }
1717
maptos-execution-util = { workspace = true }
1818
tokio = { workspace = true }
19-
futures = { workspace = true }
2019
sysinfo = { workspace = true }
2120
tracing = { workspace = true }
2221

migration/cli/migrate-node-dev/Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ mtma-node-test-global-storage-includes-criterion = { workspace = true }
2222
mtma-node-test-types = { workspace = true }
2323
movement-syncing = { workspace = true }
2424
maptos-execution-util = { workspace = true }
25-
futures = { workspace = true }
2625
tracing = { workspace = true }
2726
tracing-subscriber = { workspace = true }
2827

migration/cli/migrate-node/docs/cli/README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,8 @@ Usage: --environment-box.* [OPTIONS] --rest-api-url <REST_API_URL> --db-dir <DB_
145145
Options:
146146
--rest-api-url <REST_API_URL> The rest api url of the box environment
147147
--db-dir <DB_DIR> The db dir of the box environment
148-
--snapshot-dir <SNAPSHOT_DIR> Whether to isolate the box environment by snapshotting the movement runner and where to store the snapshot
148+
--snapshot-dir <SNAPSHOT_DIR> Whether to isolate the box environment by snapshotting the movement runner and where to
149+
store the snapshot
149150
-h, --help Print help (see more with '--help')
150151

151152
**Selection (3/4):** `environment-provisioner`

migration/util/node-types/Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ thiserror = { workspace = true }
1515
either = { workspace = true }
1616
tracing = { workspace = true }
1717
movement-aptos-core = { workspace = true }
18-
futures-channel = { workspace = true }
1918

2019
uuid = { workspace = true }
2120
walkdir = { workspace = true }

util/movement/core/src/movement.rs

Lines changed: 16 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -610,22 +610,28 @@ impl Movement {
610610

611611
impl Drop for Movement {
612612
fn drop(&mut self) {
613+
std::env::set_var("CONTAINER_REV", movement_core_util::CONTAINER_REV);
613614
// run docker compose down on workspace path
614615
info!("Dropping movement");
615616
let workspace_path = self.workspace_path();
616617
info!("Workspace path: {:?}", workspace_path);
617-
let result = std::process::Command::new("docker")
618-
.arg("compose")
619-
.arg("-f")
620-
.arg(workspace_path.join("docker/compose/movement-full-node/docker-compose.yml"))
621-
.arg("-f")
622-
.arg(workspace_path.join("docker/compose/movement-full-node/docker-compose.local.yml"))
618+
let overlays = self.overlays.as_vec();
619+
let mut command = std::process::Command::new("docker");
620+
command.arg("compose");
621+
command.arg("-f").arg("docker/compose/movement-full-node/docker-compose.yml");
622+
for overlay in overlays {
623+
let overlay_arg = overlay.overlay_arg();
624+
let compose_file = workspace_path.join(format!(
625+
"docker/compose/movement-full-node/docker-compose.{}.yml",
626+
overlay_arg
627+
));
628+
command.arg("-f").arg(compose_file);
629+
}
630+
command
623631
.arg("down")
624632
.env("DOT_MOVEMENT_PATH", workspace_path.join(".movement"))
625-
.current_dir(workspace_path)
626-
.output()
627-
.map_err(|e| MovementError::Internal(e.into()))
628-
.unwrap();
633+
.current_dir(workspace_path);
634+
let result = command.output().map_err(|e| MovementError::Internal(e.into())).unwrap();
629635

630636
info!("Docker compose down result: {:?}", result);
631637

0 commit comments

Comments
 (0)