Skip to content

Commit 8921983

Browse files
committed
fix(env): version
1 parent cf134f2 commit 8921983

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

crates/pgt_env/src/lib.rs

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,8 @@ pub fn is_unstable() -> bool {
1515
VERSION == "0.0.0"
1616
}
1717

18-
/// The internal version of Postgres Language Server. This is usually supplied during the CI build
19-
pub static PGLS_VERSION: LazyLock<Option<&str>> =
20-
LazyLock::new(|| option_env!("PGLS_VERSION").or(option_env!("PGT_VERSION")));
21-
22-
/// The version of Postgres Tools with fallback logic
23-
pub const VERSION: &str = match 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").or(option_env!("PGT_VERSION")) {
2420
Some(version) => version,
2521
None => match option_env!("CARGO_PKG_VERSION") {
2622
Some(pkg_version) => pkg_version,

0 commit comments

Comments
 (0)