Removes leo-version

This commit is contained in:
howardwu 2021-01-28 19:50:18 -08:00
parent 772902e4b4
commit 0893f58a7c
3 changed files with 4 additions and 5 deletions

View File

@ -1 +0,0 @@
v1.0.8

View File

@ -21,7 +21,7 @@ use clap::{App, AppSettings, Arg};
#[cfg_attr(tarpaulin, skip)]
fn main() -> Result<(), CLIError> {
let app = App::new("leo")
.version(include_str!("./leo-version"))
.version(env!("CARGO_PKG_VERSION"))
.about("Leo compiler and package manager")
.author("The Aleo Team <hello@aleo.org>")
.settings(&[

View File

@ -34,7 +34,7 @@ impl Updater {
.build()?
.fetch()?;
tracing::info!("List of available Leo's versions");
tracing::info!("List of available versions");
for release in releases {
tracing::info!("* {}", release.version);
}
@ -47,7 +47,7 @@ impl Updater {
.repo_owner(Self::LEO_REPO_OWNER)
.repo_name(Self::LEO_REPO_NAME)
.bin_name(Self::LEO_BIN_NAME)
.current_version(&include_str!("./leo-version").replace('v', ""))
.current_version(&env!("CARGO_PKG_VERSION"))
.show_download_progress(show_output)
.no_confirm(true)
.show_output(show_output)
@ -63,7 +63,7 @@ impl Updater {
.repo_owner(Self::LEO_REPO_OWNER)
.repo_name(Self::LEO_REPO_NAME)
.bin_name(Self::LEO_BIN_NAME)
.current_version(&include_str!("./leo-version").replace('v', ""))
.current_version(&env!("CARGO_PKG_VERSION"))
.build()?;
let current_version = updater.current_version();