Skip to content

Commit

Permalink
[tailscale1.18] cmd/dist: stamp git commit into runtime.Version value
Browse files Browse the repository at this point in the history
Temporary fix until golang#37475 is done.

(cherry picked from commit ba89304)

Change-Id: I204f03bc62c6f2295a8bc66d3f0bb2132153bc27
  • Loading branch information
josharian committed Feb 7, 2022
1 parent 485a201 commit f52db1c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/cmd/dist/build.go
Original file line number Diff line number Diff line change
Expand Up @@ -377,6 +377,9 @@ func findgoversion() string {
b = "builder " + hostType
}
}
if isGitRepo() {
b += "-ts" + chomp(run(goroot, CheckExit, "git", "log", "-n", "1", "--format=format:%h", "HEAD"))
}
return b
}
}
Expand Down

0 comments on commit f52db1c

Please sign in to comment.