From 92540d3d880abb1e5dc9d9b35a9b6bdc55df6f94 Mon Sep 17 00:00:00 2001 From: lalyos Date: Sat, 7 Feb 2015 16:55:59 +0100 Subject: [PATCH] fixing version numbers RCs should be labeled x.x.x-rcx see conversation with ryanuber: https://github.com/hashicorp/go-checkpoint/issues/2#issuecomment-73199209 --- checkpoint.go | 2 +- command/version.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/checkpoint.go b/checkpoint.go index ebe592b32..4837e4763 100644 --- a/checkpoint.go +++ b/checkpoint.go @@ -34,7 +34,7 @@ func runCheckpoint(c *Config) { version := Version if VersionPrerelease != "" { - version += fmt.Sprintf(".%s", VersionPrerelease) + version += fmt.Sprintf("-%s", VersionPrerelease) } signaturePath := filepath.Join(configDir, "checkpoint_signature") diff --git a/command/version.go b/command/version.go index 729f55aa7..d4c3a2f89 100644 --- a/command/version.go +++ b/command/version.go @@ -38,7 +38,7 @@ func (c *VersionCommand) Run(args []string) int { fmt.Fprintf(&versionString, "Terraform v%s", c.Version) if c.VersionPrerelease != "" { - fmt.Fprintf(&versionString, ".%s", c.VersionPrerelease) + fmt.Fprintf(&versionString, "-%s", c.VersionPrerelease) if c.Revision != "" { fmt.Fprintf(&versionString, " (%s)", c.Revision)