feat: update to dagger-v0.3.13

https://github.com/dagger/dagger/releases/tag/v0.3.13
This commit is contained in:
2023-02-25 00:01:18 +01:00
committed by Kasper Juul Hermansen
parent 88b055cb47
commit 3e8ca8d86e
9 changed files with 590 additions and 112 deletions

View File

@@ -1,5 +1,3 @@
use crate::{
cli_session::CliSession, config::Config, connect_params::ConnectParams, downloader::Downloader,
};
@@ -12,14 +10,17 @@ impl Engine {
}
async fn from_cli(&self, cfg: &Config) -> eyre::Result<(ConnectParams, tokio::process::Child)> {
let cli = Downloader::new("0.3.12".into())?.get_cli().await?;
let cli = Downloader::new("0.3.13".into())?.get_cli().await?;
let cli_session = CliSession::new();
Ok(cli_session.connect(cfg, &cli).await?)
}
pub async fn start(&self, cfg: &Config) -> eyre::Result<(ConnectParams, tokio::process::Child)> {
pub async fn start(
&self,
cfg: &Config,
) -> eyre::Result<(ConnectParams, tokio::process::Child)> {
// TODO: Add from existing session as well
self.from_cli(cfg).await
}
@@ -35,7 +36,10 @@ mod tests {
#[tokio::test]
async fn engine_can_start() {
let engine = Engine::new();
let params = engine.start(&Config::new(None, None, None, None)).await.unwrap();
let params = engine
.start(&Config::new(None, None, None, None))
.await
.unwrap();
assert_ne!(
params.0,