Fix: Do not embed (dirty) in the docker built version

This commit is contained in:
junderw 2026-01-02 00:03:14 +09:00
parent dad95ade9e
commit 0b735569b7
No known key found for this signature in database
GPG Key ID: B256185D3A971908

View File

@ -34,7 +34,8 @@ fn main() {
// This includes untracked files
let dirty = cmd("git", &["status", "--short"]).expect("git command works");
let git_hash = if dirty.is_empty() {
// Ignore Dockerfile deletion as it is expected in Docker buildx builds
let git_hash = if dirty.is_empty() || dirty.trim() == "D Dockerfile" {
rev_parse
} else {
format!("{}(dirty)", rev_parse.trim())