mirror of
https://github.com/neondatabase/neon.git
synced 2025-12-26 23:59:58 +00:00
Git commit sha is displayed when --version flag is used and is written to logs during service startup. Uses git_version crate when git is available, and GIT_VERSION environment variable otherwise which is the case for docker builds.
4 lines
70 B
Rust
4 lines
70 B
Rust
fn main() {
|
|
println!("cargo:rerun-if-env-changed=GIT_VERSION");
|
|
}
|