fix: build errors on ssh agent
Some checks failed
continuous-integration/drone/push Build is failing

Signed-off-by: kjuulh <contact@kjuulh.io>
This commit is contained in:
Kasper Juul Hermansen 2023-12-30 21:58:17 +01:00
parent c759db28b0
commit 9ee64020fe
Signed by: kjuulh
GPG Key ID: 57B6E1465221F912

View File

@ -20,7 +20,7 @@ impl SshAgent {
#[async_trait]
impl DaggerMiddleware for SshAgent {
async fn handle(&self, container: Container) -> eyre::Result<Container> {
let c = container.with_unix_socket("/tmp/ssh_socket", self.socket);
let c = container.with_unix_socket("/tmp/ssh_socket", self.socket.clone());
Ok(c)
}
@ -35,21 +35,21 @@ pub trait SshAgentExt {
impl SshAgentExt for RustService {
fn with_socket(&mut self, socket: dagger_sdk::Socket) -> &mut Self {
self.with_stage(super::RustServiceStage::BeforeDeps(Arc::new(
SshAgent::new(socket.clone()).extend(deps),
)))
.with_stage(super::RustServiceStage::AfterBase(Arc::new(
SshAgent::new(socket.clone()).extend(deps),
SshAgent::new(socket.clone()),
)))
.with_stage(super::RustServiceStage::AfterBase(Arc::new(SshAgent::new(
socket.clone(),
))))
}
}
impl SshAgentExt for LeptosService {
fn with_socket(&mut self, socket: dagger_sdk::Socket) -> &mut Self {
self.with_stage(super::RustServiceStage::BeforeDeps(Arc::new(
SshAgent::new(socket.clone()).extend(deps),
)))
.with_stage(super::RustServiceStage::AfterBase(Arc::new(
SshAgent::new(socket.clone()).extend(deps),
SshAgent::new(socket.clone()),
)))
.with_stage(super::RustServiceStage::AfterBase(Arc::new(SshAgent::new(
socket.clone(),
))))
}
}