Skip to content

Commit c54a459

Browse files
committed
fix(vmm): report commit hash instead of unrelated component tag
1 parent f0bed4a commit c54a459

1 file changed

Lines changed: 9 additions & 1 deletion

File tree

dstack/vmm/src/main.rs

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,15 @@ mod openapi;
3333

3434
const CARGO_PKG_VERSION: &str = env!("CARGO_PKG_VERSION");
3535
const GIT_REV: &str = git_version::git_version!(
36-
args = ["--abbrev=20", "--always", "--dirty=-modified"],
36+
// This is a monorepo with component-specific tags (for example,
37+
// `verifier-v0.5.11`). Exclude tags so `git describe` cannot mistake an
38+
// unrelated component's tag for the VMM revision.
39+
args = [
40+
"--abbrev=20",
41+
"--always",
42+
"--dirty=-modified",
43+
"--exclude=*"
44+
],
3745
prefix = "git:",
3846
fallback = "unknown"
3947
);

0 commit comments

Comments
 (0)