13 lines
314 B
PowerShell
13 lines
314 B
PowerShell
$GitCommitId = &("git.exe") log -n1 --format="%h"
|
|
$GitCommitId = $GitCommitId.Trim()
|
|
|
|
@"
|
|
// Code generated automatically; DO NOT EDIT.
|
|
package version
|
|
|
|
var (
|
|
// GitCommitId provides the git commit id used to build this service.
|
|
GitCommitId = "$GitCommitId"
|
|
)
|
|
|
|
"@ | Out-File -Encoding ASCII -FilePath version.go |