Skip to content

Commit 4336877

Browse files
committed
Switching to using env var for version
1 parent 3bddb3b commit 4336877

File tree

2 files changed

+3
-8
lines changed

2 files changed

+3
-8
lines changed

Cargo.lock

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

crates/turborepo-lib/src/lib.rs

+1-6
Original file line numberDiff line numberDiff line change
@@ -45,12 +45,7 @@ pub use crate::{
4545
};
4646

4747
pub fn get_version() -> &'static str {
48-
include_str!("../../../version.txt")
49-
.split_once('\n')
50-
.expect("Failed to read version from version.txt")
51-
.0
52-
// On windows we still have a trailing \r
53-
.trim_end()
48+
env!("CARGO_PKG_VERSION")
5449
}
5550

5651
pub fn main() -> Result<i32, shim::Error> {

0 commit comments

Comments
 (0)