build: Versioning now populated through ldflags

This commit is contained in:
Harshavardhana
2015-11-02 02:11:34 -08:00
parent ef04507bc4
commit 7845515f36
6 changed files with 36 additions and 65 deletions
+2 -2
View File
@@ -90,7 +90,7 @@ func (u updateMessage) JSON() string {
}
func getExperimentalUpdate() {
current, e := time.Parse(http.TimeFormat, minioVersion)
current, e := time.Parse(time.RFC3339, minioVersion)
fatalIf(probe.NewError(e), "Unable to parse Version string as time.", nil)
if current.IsZero() {
@@ -133,7 +133,7 @@ func getExperimentalUpdate() {
}
func getReleaseUpdate() {
current, e := time.Parse(http.TimeFormat, minioVersion)
current, e := time.Parse(time.RFC3339, minioVersion)
fatalIf(probe.NewError(e), "Unable to parse Version string as time.", nil)
if current.IsZero() {