Skip to content

Commit

Permalink
[tailscale1.20] cmd/dist: stamp git commit into runtime.Version value
Browse files Browse the repository at this point in the history
Change-Id: I204f03bc62c6f2295a8bc66d3f0bb2132153bc27
(cherry picked from commit cf2c315)
  • Loading branch information
josharian authored and bradfitz committed Jan 31, 2023
1 parent 8c9eff4 commit e858fd8
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 @@ -362,6 +362,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 e858fd8

Please sign in to comment.