mirror of
https://github.com/Noratrieb/does-it-build.git
synced 2026-01-14 10:25:01 +01:00
Say the build has no changes for DOES_IT_BUILD_OVERRIDE_VERSION
This commit is contained in:
parent
b1d1728c42
commit
9de21d4198
1 changed files with 4 additions and 0 deletions
4
build.rs
4
build.rs
|
|
@ -31,6 +31,10 @@ fn try_get_commit() -> color_eyre::Result<String> {
|
|||
}
|
||||
|
||||
fn has_no_changes() -> color_eyre::Result<bool> {
|
||||
if std::env::var("DOES_IT_BUILD_OVERRIDE_VERSION").is_ok() {
|
||||
return Ok(true);
|
||||
}
|
||||
|
||||
Ok(std::process::Command::new("git")
|
||||
.args(["diff", "--no-ext-diff", "--quiet", "--exit-code"])
|
||||
.output()?
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue