Skip to content

Commit

Permalink
Make canary version semver compatible (denoland#8537)
Browse files Browse the repository at this point in the history
  • Loading branch information
crowlKats authored Nov 29, 2020
1 parent 097babb commit 1ed37b7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cli/version.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ pub const TYPESCRIPT: &str = crate::js::TS_VERSION;
pub fn deno() -> String {
let semver = env!("CARGO_PKG_VERSION");
option_env!("DENO_CANARY").map_or(semver.to_string(), |_| {
format!("{}-{}", semver, GIT_COMMIT_HASH)
format!("{}+{}", semver, GIT_COMMIT_HASH)
})
}

Expand Down

0 comments on commit 1ed37b7

Please sign in to comment.