$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