Skip to content

Commit

Permalink
Switching to using env var for version
Browse files Browse the repository at this point in the history
  • Loading branch information
NicholasLYang committed Jun 6, 2024
1 parent 3bddb3b commit 4336877
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 deletions.
4 changes: 2 additions & 2 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 1 addition & 6 deletions crates/turborepo-lib/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -45,12 +45,7 @@ pub use crate::{
};

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

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

0 comments on commit 4336877

Please sign in to comment.