Merge pull request #949 from lalyos/fix-version-number
fixing version numbers: RCs should be labeled x.x.x-rcx
This commit is contained in:
commit
05078bce47
|
@ -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")
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue