Skip to content

Commit e687ab6

Browse files
test if this is still required
1 parent 67dac27 commit e687ab6

File tree

1 file changed

+14
-13
lines changed

1 file changed

+14
-13
lines changed

crates/icp/src/network/managed/docker.rs

Lines changed: 14 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -53,19 +53,20 @@ pub async fn spawn_docker_launcher(
5353
let wsl2_distro = std::env::var("ICP_CLI_DOCKER_WSL2_DISTRO").ok();
5454
let wsl2_distro = wsl2_distro.as_deref();
5555
let wsl2_convert = cfg!(windows) && wsl2_distro.is_some();
56-
let host_status_tmpdir = if wsl2_convert {
57-
let host_tmp = wslpath2::convert("/tmp", wsl2_distro, Conversion::WslToWindows, true)
58-
.map_err(|e| {
59-
WslPathConvertSnafu {
60-
msg: e.to_string(),
61-
path: "/tmp",
62-
}
63-
.build()
64-
})?;
65-
Utf8TempDir::new_in(&host_tmp).context(WslCreateTmpDirSnafu)?
66-
} else {
67-
Utf8TempDir::new().context(CreateStatusDirSnafu)?
68-
};
56+
// let host_status_tmpdir = if wsl2_convert {
57+
// let host_tmp = wslpath2::convert("/tmp", wsl2_distro, Conversion::WslToWindows, true)
58+
// .map_err(|e| {
59+
// WslPathConvertSnafu {
60+
// msg: e.to_string(),
61+
// path: "/tmp",
62+
// }
63+
// .build()
64+
// })?;
65+
// Utf8TempDir::new_in(&host_tmp).context(WslCreateTmpDirSnafu)?
66+
// } else {
67+
// Utf8TempDir::new().context(CreateStatusDirSnafu)?
68+
// };
69+
let host_status_tmpdir = Utf8TempDir::new().context(CreateStatusDirSnafu)?;
6970
let host_status_dir = host_status_tmpdir.path();
7071
let host_status_dir_param = convert_path(wsl2_convert, wsl2_distro, host_status_tmpdir.path())?;
7172
let socket = match std::env::var("DOCKER_HOST").ok() {

0 commit comments

Comments
 (0)