From 877f19aa725018e7ed62ed4f6a8319abf806ddc2 Mon Sep 17 00:00:00 2001 From: kjuulh Date: Sat, 30 Dec 2023 22:40:49 +0100 Subject: [PATCH] fix: actually build the builder Signed-off-by: kjuulh --- crates/cuddle-ci/src/rust_service/ssh_agent.rs | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/crates/cuddle-ci/src/rust_service/ssh_agent.rs b/crates/cuddle-ci/src/rust_service/ssh_agent.rs index e20c7ad..bf2daf6 100644 --- a/crates/cuddle-ci/src/rust_service/ssh_agent.rs +++ b/crates/cuddle-ci/src/rust_service/ssh_agent.rs @@ -31,13 +31,15 @@ impl DaggerMiddleware for SshAgent { let c = container .with_new_file_opts( format!("{home}/.ssh/config"), - ContainerWithNewFileOptsBuilder::default().contents( - r#" + ContainerWithNewFileOptsBuilder::default() + .contents( + r#" Host * StrictHostKeyChecking no UserKnownHostsFile=/dev/null "#, - ), + ) + .build()?, ) .with_unix_socket(&sock_var, socket) .with_env_variable("SSH_AUTH_SOCK", &sock_var);