mirror of
https://github.com/denoland/deno.git
synced 2025-08-04 19:08:15 +00:00
fix: full commit hash in canary compile download (#9166)
This commit is contained in:
parent
867ce78fb6
commit
cf3202644d
3 changed files with 3 additions and 5 deletions
|
@ -6,7 +6,7 @@ pub const TYPESCRIPT: &str = env!("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[..7])
|
||||
})
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue