diff options
author | Bjørn Erik Pedersen <[email protected]> | 2017-10-19 07:12:23 +0200 |
---|---|---|
committer | Bjørn Erik Pedersen <[email protected]> | 2017-10-19 07:12:23 +0200 |
commit | e939aaed8b22c9b822e236bbfffa277d1e8bcd3e (patch) | |
tree | 6e302d363bd267fc519fc3f2daff700ea34dbf57 /releaser | |
parent | d2b3f00df7cd601b0eed35d2594e016108765456 (diff) | |
download | hugo-e939aaed8b22c9b822e236bbfffa277d1e8bcd3e.tar.gz hugo-e939aaed8b22c9b822e236bbfffa277d1e8bcd3e.zip |
releaser: Correctly set final version on patch releases
Diffstat (limited to 'releaser')
-rw-r--r-- | releaser/releaser.go | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/releaser/releaser.go b/releaser/releaser.go index 1271cf179..02a98fa9f 100644 --- a/releaser/releaser.go +++ b/releaser/releaser.go @@ -53,17 +53,13 @@ type ReleaseHandler struct { func (r ReleaseHandler) calculateVersions() (helpers.HugoVersion, helpers.HugoVersion) { newVersion := helpers.MustParseHugoVersion(r.cliVersion) - finalVersion := newVersion + finalVersion := newVersion.Next() finalVersion.PatchLevel = 0 if newVersion.Suffix != "-test" { newVersion.Suffix = "" } - if newVersion.PatchLevel == 0 { - finalVersion = finalVersion.Next() - } - finalVersion.Suffix = "-DEV" return newVersion, finalVersion |