Skip to content

Commit

Permalink
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.
  • Loading branch information
bradfitz committed Jun 14, 2020
1 parent 2800e21 commit ba89304
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 @@ -372,6 +372,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 ba89304

Please sign in to comment.