Skip to content

The IDE you know, rebuilt in Rust. IntelliJ IDEA–style keymap, tool windows and search-everywhere in a fast native app: editor, code insight, debugger, Git, terminal, database and HTTP clients for 60+ languages.

fix(remote): build the Docker run tests' helpers only where they run (#1645)

l0ng-aia6474539b83b
diff --git a/crates/ide-remote/src/docker.rs b/crates/ide-remote/src/docker.rs
index b925bad85..f59dc8cd0 100644
--- a/crates/ide-remote/src/docker.rs
+++ b/crates/ide-remote/src/docker.rs
@@ -193,8 +193,10 @@ pub fn compose_container_root(config_json: &str, service: &str, root: &Path) ->
#[cfg(test)]
mod tests {
use super::*;
+ #[cfg(unix)]
use std::path::PathBuf;
+ #[cfg(unix)]
fn config(command: &str, args: &[&str]) -> RunConfig {
RunConfig {
id: "app".into(),
@@ -212,6 +214,7 @@ mod tests {
}
}
+ #[cfg(unix)]
fn run<'a>(
target: &'a RunTarget,
endpoint: &'a BTreeMap<String, String>,