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
This commit is contained in:
parent
db9f98a752
commit
92540d3d88
|
@ -34,7 +34,7 @@ func runCheckpoint(c *Config) {
|
||||||
|
|
||||||
version := Version
|
version := Version
|
||||||
if VersionPrerelease != "" {
|
if VersionPrerelease != "" {
|
||||||
version += fmt.Sprintf(".%s", VersionPrerelease)
|
version += fmt.Sprintf("-%s", VersionPrerelease)
|
||||||
}
|
}
|
||||||
|
|
||||||
signaturePath := filepath.Join(configDir, "checkpoint_signature")
|
signaturePath := filepath.Join(configDir, "checkpoint_signature")
|
||||||
|
|
|
@ -38,7 +38,7 @@ func (c *VersionCommand) Run(args []string) int {
|
||||||
|
|
||||||
fmt.Fprintf(&versionString, "Terraform v%s", c.Version)
|
fmt.Fprintf(&versionString, "Terraform v%s", c.Version)
|
||||||
if c.VersionPrerelease != "" {
|
if c.VersionPrerelease != "" {
|
||||||
fmt.Fprintf(&versionString, ".%s", c.VersionPrerelease)
|
fmt.Fprintf(&versionString, "-%s", c.VersionPrerelease)
|
||||||
|
|
||||||
if c.Revision != "" {
|
if c.Revision != "" {
|
||||||
fmt.Fprintf(&versionString, " (%s)", c.Revision)
|
fmt.Fprintf(&versionString, " (%s)", c.Revision)
|
||||||
|
|
Loading…
Reference in New Issue