summaryrefslogtreecommitdiff
path: root/cli/flags.rs
diff options
context:
space:
mode:
authorcrowlKats <13135287+crowlKats@users.noreply.github.com>2020-12-14 13:55:07 +0100
committerGitHub <noreply@github.com>2020-12-14 13:55:07 +0100
commitb2bda5707358136808f1de4b6ce68f6393514d09 (patch)
treead430a62b1bdefb0f30546788a366e303c89171c /cli/flags.rs
parentb5b7c7ee0154a28e6e15ec139bc3e0819f9eb910 (diff)
fix(cli): show canary string in long version (#8675)
Diffstat (limited to 'cli/flags.rs')
-rw-r--r--cli/flags.rs6
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