docker: second --ldflags was overriding the first --ldflags option

This commit is contained in:
Krishna Srinivas
2015-11-06 23:39:26 -08:00
parent 03f185db5f
commit f77851bee0
5 changed files with 20 additions and 9 deletions

View File

@@ -28,10 +28,10 @@ import (
func genLDFlags(version string) string {
var ldflagsStr string
ldflagsStr = "\"-X main.minioVersion=" + version + " "
ldflagsStr = "-X main.minioVersion=" + version + " "
ldflagsStr = ldflagsStr + "-X main.minioReleaseTag=" + releaseTag(version) + " "
ldflagsStr = ldflagsStr + "-X main.minioCommitID=" + commitID() + " "
ldflagsStr = ldflagsStr + "-X main.minioShortCommitID=" + commitID()[:12] + "\""
ldflagsStr = ldflagsStr + "-X main.minioShortCommitID=" + commitID()[:12]
return ldflagsStr
}