fix: build errors on ssh agent
Some checks failed
continuous-integration/drone/push Build is failing
Some checks failed
continuous-integration/drone/push Build is failing
Signed-off-by: kjuulh <contact@kjuulh.io>
This commit is contained in:
parent
c759db28b0
commit
9ee64020fe
@ -20,7 +20,7 @@ impl SshAgent {
|
|||||||
#[async_trait]
|
#[async_trait]
|
||||||
impl DaggerMiddleware for SshAgent {
|
impl DaggerMiddleware for SshAgent {
|
||||||
async fn handle(&self, container: Container) -> eyre::Result<Container> {
|
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)
|
Ok(c)
|
||||||
}
|
}
|
||||||
@ -35,21 +35,21 @@ pub trait SshAgentExt {
|
|||||||
impl SshAgentExt for RustService {
|
impl SshAgentExt for RustService {
|
||||||
fn with_socket(&mut self, socket: dagger_sdk::Socket) -> &mut Self {
|
fn with_socket(&mut self, socket: dagger_sdk::Socket) -> &mut Self {
|
||||||
self.with_stage(super::RustServiceStage::BeforeDeps(Arc::new(
|
self.with_stage(super::RustServiceStage::BeforeDeps(Arc::new(
|
||||||
SshAgent::new(socket.clone()).extend(deps),
|
SshAgent::new(socket.clone()),
|
||||||
)))
|
|
||||||
.with_stage(super::RustServiceStage::AfterBase(Arc::new(
|
|
||||||
SshAgent::new(socket.clone()).extend(deps),
|
|
||||||
)))
|
)))
|
||||||
|
.with_stage(super::RustServiceStage::AfterBase(Arc::new(SshAgent::new(
|
||||||
|
socket.clone(),
|
||||||
|
))))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
impl SshAgentExt for LeptosService {
|
impl SshAgentExt for LeptosService {
|
||||||
fn with_socket(&mut self, socket: dagger_sdk::Socket) -> &mut Self {
|
fn with_socket(&mut self, socket: dagger_sdk::Socket) -> &mut Self {
|
||||||
self.with_stage(super::RustServiceStage::BeforeDeps(Arc::new(
|
self.with_stage(super::RustServiceStage::BeforeDeps(Arc::new(
|
||||||
SshAgent::new(socket.clone()).extend(deps),
|
SshAgent::new(socket.clone()),
|
||||||
)))
|
|
||||||
.with_stage(super::RustServiceStage::AfterBase(Arc::new(
|
|
||||||
SshAgent::new(socket.clone()).extend(deps),
|
|
||||||
)))
|
)))
|
||||||
|
.with_stage(super::RustServiceStage::AfterBase(Arc::new(SshAgent::new(
|
||||||
|
socket.clone(),
|
||||||
|
))))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user