Skip to content

Commit 92540d3

Browse files
committedFeb 7, 2015
fixing version numbers RCs should be labeled x.x.x-rcx
see conversation with ryanuber: hashicorp/go-checkpoint#2 (comment)
1 parent db9f98a commit 92540d3

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed
 

‎checkpoint.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ func runCheckpoint(c *Config) {
3434

3535
version := Version
3636
if VersionPrerelease != "" {
37-
version += fmt.Sprintf(".%s", VersionPrerelease)
37+
version += fmt.Sprintf("-%s", VersionPrerelease)
3838
}
3939

4040
signaturePath := filepath.Join(configDir, "checkpoint_signature")

‎command/version.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ func (c *VersionCommand) Run(args []string) int {
3838

3939
fmt.Fprintf(&versionString, "Terraform v%s", c.Version)
4040
if c.VersionPrerelease != "" {
41-
fmt.Fprintf(&versionString, ".%s", c.VersionPrerelease)
41+
fmt.Fprintf(&versionString, "-%s", c.VersionPrerelease)
4242

4343
if c.Revision != "" {
4444
fmt.Fprintf(&versionString, " (%s)", c.Revision)

0 commit comments

Comments
 (0)