From ae2326c781af735bda41cf554cea0b08c0e780b9 Mon Sep 17 00:00:00 2001 From: "Joseph T. Lyons" Date: Wed, 28 Feb 2024 15:50:10 -0500 Subject: [PATCH] Fix `view release notes locally` (#8553) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 🤦‍♂️ Release Notes: - N/A --- crates/auto_update/src/auto_update.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/auto_update/src/auto_update.rs b/crates/auto_update/src/auto_update.rs index 926a9a851995372914271cf9d8a62c656a933a52..3dd10b10a950e790d3a3f0a7d03692c9346a2b2c 100644 --- a/crates/auto_update/src/auto_update.rs +++ b/crates/auto_update/src/auto_update.rs @@ -20,7 +20,7 @@ use smol::io::AsyncReadExt; use settings::{Settings, SettingsStore}; use smol::{fs::File, process::Command}; -use release_channel::{AppCommitSha, ReleaseChannel}; +use release_channel::{AppCommitSha, AppVersion, ReleaseChannel}; use std::{ env::consts::{ARCH, OS}, ffi::OsString, @@ -190,7 +190,7 @@ pub fn view_release_notes(_: &ViewReleaseNotes, cx: &mut AppContext) -> Option<( fn view_release_notes_locally(workspace: &mut Workspace, cx: &mut ViewContext) { let release_channel = ReleaseChannel::global(cx); - let version = env!("CARGO_PKG_VERSION"); + let version = AppVersion::global(cx).to_string(); let client = client::Client::global(cx).http_client(); let url = client.build_url(&format!(