Skip to content
This repository has been archived by the owner on Mar 21, 2024. It is now read-only.

Commit

Permalink
use dynamic versioning with environment variable
Browse files Browse the repository at this point in the history
needed for artifact version

update

version command returns build time VERSION env or Cargo.toml version
  • Loading branch information
adrianfilip committed Feb 15, 2024
1 parent ae58848 commit b4cdba3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ enum Command {
}

#[derive(Parser, Debug)]
#[command(author, version, about, long_about, rename_all = "kebab-case")]
#[command(author, version=option_env!("VERSION").unwrap_or(env!("CARGO_PKG_VERSION")), about, long_about, rename_all = "kebab-case")]
/// Command line interface for OSS version of Golem.
///
/// For Golem Cloud client see golem-cloud-cli instead: https://github.com/golemcloud/golem-cloud-cli
Expand Down

0 comments on commit b4cdba3

Please sign in to comment.