Skip to content

Commit

Permalink
fixing version numbers RCs should be labeled x.x.x-rcx
Browse files Browse the repository at this point in the history
see conversation with ryanuber: hashicorp/go-checkpoint#2 (comment)
  • Loading branch information
lalyos committed Feb 7, 2015
1 parent db9f98a commit 92540d3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion checkpoint.go
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down
2 changes: 1 addition & 1 deletion command/version.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 92540d3

Please sign in to comment.