diff options
author | Bartek IwaĆczuk <biwanczuk@gmail.com> | 2024-08-28 15:31:25 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-08-28 14:31:25 +0000 |
commit | 044e7c4e63484387ea9066085aeb65142a6b1430 (patch) | |
tree | 9c0a70ed4f0aac88715b3706834a1eff9276bf55 /cli/version.rs | |
parent | 553bd7dec328884785da805d8ef4f9c4510e1366 (diff) |
build: Allow building 'rc' release from source (#25227)
We're not gonna use it, but this might help distribution tools like
Homebrew to also release Deno 2.0 RC releases.
Diffstat (limited to 'cli/version.rs')
-rw-r--r-- | cli/version.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/cli/version.rs b/cli/version.rs index dbd63f614..0cdb32102 100644 --- a/cli/version.rs +++ b/cli/version.rs @@ -9,6 +9,8 @@ const TYPESCRIPT: &str = env!("TS_VERSION"); const CARGO_PKG_VERSION: &str = env!("CARGO_PKG_VERSION"); // TODO(bartlomieju): ideally we could remove this const. const IS_CANARY: bool = option_env!("DENO_CANARY").is_some(); +// TODO(bartlomieju): this is temporary, to allow Homebrew to cut RC releases as well +const IS_RC: bool = option_env!("DENO_RC").is_some(); pub static DENO_VERSION_INFO: Lazy<DenoVersionInfo> = Lazy::new(|| { let release_channel = libsui::find_section("denover") @@ -17,6 +19,8 @@ pub static DENO_VERSION_INFO: Lazy<DenoVersionInfo> = Lazy::new(|| { .unwrap_or({ if IS_CANARY { ReleaseChannel::Canary + } else if IS_RC { + ReleaseChannel::Rc } else { ReleaseChannel::Stable } |