diff options
Diffstat (limited to 'cli/tools')
-rw-r--r-- | cli/tools/repl.rs | 2 | ||||
-rw-r--r-- | cli/tools/upgrade.rs | 7 |
2 files changed, 5 insertions, 4 deletions
diff --git a/cli/tools/repl.rs b/cli/tools/repl.rs index be85dc813..e6a2fd709 100644 --- a/cli/tools/repl.rs +++ b/cli/tools/repl.rs @@ -467,7 +467,7 @@ pub async fn run( .load_history(history_file.to_str().unwrap()) .unwrap_or(()); - println!("Deno {}", crate::version::DENO); + println!("Deno {}", crate::version::deno()); println!("exit using ctrl+d or close()"); inject_prelude(&mut worker, &mut session, context_id).await?; diff --git a/cli/tools/upgrade.rs b/cli/tools/upgrade.rs index f183540cf..3344ca2d5 100644 --- a/cli/tools/upgrade.rs +++ b/cli/tools/upgrade.rs @@ -38,7 +38,8 @@ pub async fn upgrade_command( let install_version = match version { Some(passed_version) => { - if !force && output.is_none() && crate::version::DENO == passed_version { + if !force && output.is_none() && crate::version::deno() == passed_version + { println!("Version {} is already installed", passed_version); return Ok(()); } else { @@ -48,7 +49,7 @@ pub async fn upgrade_command( None => { let latest_version = get_latest_version(&client).await?; - let current = semver_parse(crate::version::DENO).unwrap(); + let current = semver_parse(&*crate::version::deno()).unwrap(); let latest = match semver_parse(&latest_version) { Ok(v) => v, Err(_) => { @@ -60,7 +61,7 @@ pub async fn upgrade_command( if !force && output.is_none() && current >= latest { println!( "Local deno version {} is the most recent release", - crate::version::DENO + crate::version::deno() ); return Ok(()); } else { |