Skip to content

Commit 6d4827d

Browse files
committed
progress
1 parent 8921983 commit 6d4827d

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

crates/pgt_env/src/lib.rs

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,19 +8,22 @@
88
use pgt_console::fmt::{Display, Formatter};
99
use pgt_console::{DebugDisplay, KeyValuePair, markup};
1010
use std::env;
11-
use std::sync::{LazyLock, OnceLock};
11+
use std::sync::OnceLock;
1212

1313
/// Returns `true` if this is an unstable build of Postgres Language Server
1414
pub fn is_unstable() -> bool {
1515
VERSION == "0.0.0"
1616
}
1717

18-
/// The version of Postgres Language Server. This is usually supplied during the CI build
19-
pub const VERSION: &str = match option_env!("PGLS_VERSION").or(option_env!("PGT_VERSION")) {
18+
/// The version of Postgres Language Server. This is usually supplied during the CI build.
19+
pub const VERSION: &str = match option_env!("PGLS_VERSION") {
2020
Some(version) => version,
21-
None => match option_env!("CARGO_PKG_VERSION") {
22-
Some(pkg_version) => pkg_version,
23-
None => "0.0.0",
21+
None => match option_env!("PGT_VERSION") {
22+
Some(version) => version,
23+
None => match option_env!("CARGO_PKG_VERSION") {
24+
Some(pkg_version) => pkg_version,
25+
None => "0.0.0",
26+
},
2427
},
2528
};
2629

0 commit comments

Comments
 (0)