Skip to content

Commit

Permalink
Merge pull request #2120 from reubenmiller/fix-remote-access-use-auto…
Browse files Browse the repository at this point in the history
…-versioning

fix(c8y-remote-access-plugin): use auto versioning to align with other components
  • Loading branch information
reubenmiller authored Aug 4, 2023
2 parents f261223 + de4c2f5 commit 88f620f
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions plugins/c8y_remote_access_plugin/build.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
fn main() {
// export GIT_SEMVER=$(git describe --always --tags --abbrev=8 --dirty)
// https://github.com/rust-lang/cargo/issues/6583#issuecomment-1259871885
if let Ok(val) = std::env::var("GIT_SEMVER") {
println!("Using version defined by 'GIT_SEMVER={}'", val);
println!("cargo:rustc-env=CARGO_PKG_VERSION={}", val);
}
println!("cargo:rerun-if-env-changed=GIT_SEMVER");
println!("cargo:rerun-if-changed=build.rs");
}

0 comments on commit 88f620f

Please sign in to comment.