Skip to content

Commit

Permalink
[tailscale1.16] 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)
  • Loading branch information
bradfitz committed Feb 18, 2021
1 parent be41a25 commit 97d28a4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/cmd/dist/build.go
Expand Up @@ -369,6 +369,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 97d28a4

Please sign in to comment.