1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-12-22 07:14:47 -05:00

Make canary version semver compatible (#8537)

This commit is contained in:
crowlKats 2020-11-29 14:16:50 +01:00 committed by GitHub
parent 097babb6fb
commit 1ed37b7751
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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)
})
}