Skip to content

Commit ba89304

Browse files
committed
cmd/dist: stamp git commit into runtime.Version value
Temporary fix until golang#37475 is done.
1 parent 2800e21 commit ba89304

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/cmd/dist/build.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -372,6 +372,9 @@ func findgoversion() string {
372372
b = "builder " + hostType
373373
}
374374
}
375+
if isGitRepo() {
376+
b += "-ts" + chomp(run(goroot, CheckExit, "git", "log", "-n", "1", "--format=format:%h", "HEAD"))
377+
}
375378
return b
376379
}
377380
}

0 commit comments

Comments
 (0)