Skip to content

Commit f52db1c

Browse files
committed
[tailscale1.18] cmd/dist: stamp git commit into runtime.Version value
Temporary fix until golang#37475 is done. (cherry picked from commit ba89304) Change-Id: I204f03bc62c6f2295a8bc66d3f0bb2132153bc27
1 parent 485a201 commit f52db1c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/cmd/dist/build.go

+3
Original file line numberDiff line numberDiff line change
@@ -377,6 +377,9 @@ func findgoversion() string {
377377
b = "builder " + hostType
378378
}
379379
}
380+
if isGitRepo() {
381+
b += "-ts" + chomp(run(goroot, CheckExit, "git", "log", "-n", "1", "--format=format:%h", "HEAD"))
382+
}
380383
return b
381384
}
382385
}

0 commit comments

Comments
 (0)