diff --git a/crates/dagger-core/src/engine.rs b/crates/dagger-core/src/engine.rs index d522a74..b9a9956 100644 --- a/crates/dagger-core/src/engine.rs +++ b/crates/dagger-core/src/engine.rs @@ -1,3 +1,4 @@ +use crate::DAGGER_ENGINE_VERSION; use crate::{ cli_session::CliSession, config::Config, connect_params::ConnectParams, downloader::Downloader, }; @@ -10,7 +11,9 @@ impl Engine { } async fn from_cli(&self, cfg: &Config) -> eyre::Result<(ConnectParams, tokio::process::Child)> { - let cli = Downloader::new("0.3.13".into())?.get_cli().await?; + let cli = Downloader::new(DAGGER_ENGINE_VERSION.into())? + .get_cli() + .await?; let cli_session = CliSession::new(); diff --git a/crates/dagger-core/src/lib.rs b/crates/dagger-core/src/lib.rs index 7a10530..2f62a62 100644 --- a/crates/dagger-core/src/lib.rs +++ b/crates/dagger-core/src/lib.rs @@ -1,5 +1,7 @@ #![deny(warnings)] +pub const DAGGER_ENGINE_VERSION: &'static str = "0.4.0"; + pub mod cli_session; pub mod config; pub mod connect_params;