Skip to content

Conversation

ma-ts
Copy link

@ma-ts ma-ts commented Jul 26, 2025

Currently, building regorus does not work if git is not available in the build context, which is very common in a Docker build.
This falls back to an 'unknown' hash in case git is not available.

println!("cargo:rustc-env=GIT_HASH={git_hash}");
.map(|output| String::from_utf8_lossy(&output.stdout).trim().to_string())
.unwrap_or_else(|_| "unknown".to_string());
println!("cargo:rustc-env=GIT_HASH={}", git_hash);

Check warning

Code scanning / clippy

variables can be used directly in the format! string Warning

variables can be used directly in the format! string
@anakrish
Copy link
Collaborator

Hey @ma-ts, just a gentle ping.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants