diff options
author | crowlKats <13135287+crowlKats@users.noreply.github.com> | 2020-12-14 13:55:07 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-12-14 13:55:07 +0100 |
commit | b2bda5707358136808f1de4b6ce68f6393514d09 (patch) | |
tree | ad430a62b1bdefb0f30546788a366e303c89171c /cli/flags.rs | |
parent | b5b7c7ee0154a28e6e15ec139bc3e0819f9eb910 (diff) |
fix(cli): show canary string in long version (#8675)
Diffstat (limited to 'cli/flags.rs')
-rw-r--r-- | cli/flags.rs | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/cli/flags.rs b/cli/flags.rs index bafd8fe91..d3fd18c32 100644 --- a/cli/flags.rs +++ b/cli/flags.rs @@ -226,7 +226,11 @@ lazy_static! { static ref LONG_VERSION: String = format!( "{} ({}, {})\nv8 {}\ntypescript {}", crate::version::deno(), - env!("PROFILE"), + if crate::version::is_canary() { + "canary" + } else { + env!("PROFILE") + }, env!("TARGET"), deno_core::v8_version(), crate::version::TYPESCRIPT |