diff --git a/crates/dev_container/src/devcontainer_api.rs b/crates/dev_container/src/devcontainer_api.rs index 0407bbf7c710924c2b33f31b8df24780e103d4b2..bdba805ade04598d7fba23bbd717d8ec2d584c4f 100644 --- a/crates/dev_container/src/devcontainer_api.rs +++ b/crates/dev_container/src/devcontainer_api.rs @@ -334,6 +334,10 @@ fn dev_container_cli() -> String { "devcontainer.cmd".to_string() } +fn dev_container_script() -> String { + "devcontainer.js".to_string() +} + async fn check_for_docker(use_podman: bool) -> Result<(), DevContainerError> { let mut command = if use_podman { util::command::new_smol_command("podman") @@ -371,7 +375,7 @@ async fn ensure_devcontainer_cli( .join("node_modules") .join("@devcontainers") .join("cli") - .join(format!("{}.js", &dev_container_cli())); + .join(&dev_container_script()); log::debug!( "devcontainer not found in path, using local location: ${}",