1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-11-21 15:04:11 -05:00

fix: log current version when using deno upgrade (#25079)

This PR addresses a suggestion in issue #21417

---------

Co-authored-by: Bartek Iwańczuk <biwanczuk@gmail.com>
This commit is contained in:
HasanAlrimawi 2024-08-19 01:07:54 +03:00 committed by GitHub
parent 4cd95589ec
commit 2e9d3b688c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -450,6 +450,8 @@ pub async fn upgrade(
let requested_version =
RequestedVersion::from_upgrade_flags(upgrade_flags.clone())?;
log::info!("Current Deno version: v{}", version::DENO_VERSION_INFO.deno);
let maybe_selected_version_to_upgrade = match &requested_version {
RequestedVersion::Latest(channel) => {
find_latest_version_to_upgrade(