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:
parent
097babb6fb
commit
1ed37b7751
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
})
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue