Skip to content

Commit

Permalink
refactor: rename BUILD -> GIT_COMMIT_HASH, modify output format
Browse files Browse the repository at this point in the history
  • Loading branch information
kt3k committed Oct 31, 2020
1 parent 6f58bad commit 1aedd38
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions cli/flags.rs
Original file line number Diff line number Diff line change
Expand Up @@ -221,9 +221,9 @@ To evaluate code in the shell:

lazy_static! {
static ref LONG_VERSION: String = format!(
"{} ({})\ntarget {}\nv8 {}\ntypescript {}",
"{} ({}, {})\nv8 {}\ntypescript {}",
crate::version::DENO,
crate::version::BUILD,
crate::version::GIT_COMMIT_HASH,
env!("TARGET"),
crate::version::v8(),
crate::version::TYPESCRIPT
Expand Down
2 changes: 1 addition & 1 deletion cli/version.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.

pub const DENO: &str = env!("CARGO_PKG_VERSION");
pub const BUILD: &str = env!("GIT_COMMIT_HASH");
pub const GIT_COMMIT_HASH: &str = env!("GIT_COMMIT_HASH");
pub const TYPESCRIPT: &str = crate::js::TS_VERSION;

pub fn v8() -> &'static str {
Expand Down

0 comments on commit 1aedd38

Please sign in to comment.