diff options
author | hugoreleaser <[email protected]> | 2022-05-16 08:50:17 +0000 |
---|---|---|
committer | Bjørn Erik Pedersen <[email protected]> | 2022-05-16 13:01:52 +0200 |
commit | 7bc3401eb5fc1cff042bd4ab13938eb9924ecb2b (patch) | |
tree | 8d2a9148bd077c2bb28294e2ef55ebf9a882dfde /releaser | |
parent | 1de333e7a3fc863672ec6d6cd53ba66dbcdd2305 (diff) | |
download | hugo-7bc3401eb5fc1cff042bd4ab13938eb9924ecb2b.tar.gz hugo-7bc3401eb5fc1cff042bd4ab13938eb9924ecb2b.zip |
common/hugo: Fix version logic
[ci skip]
Diffstat (limited to 'releaser')
-rw-r--r-- | releaser/releaser.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/releaser/releaser.go b/releaser/releaser.go index 6bcfe3c80..10c50498b 100644 --- a/releaser/releaser.go +++ b/releaser/releaser.go @@ -231,9 +231,9 @@ func (r *ReleaseHandler) bumpVersions(ver hugo.Version) error { } if err := r.replaceInFile("common/hugo/version_current.go", - `Number:(\s{4,})(.*),`, fmt.Sprintf(`Number:${1}%.2f,`, ver.Number), - `PatchLevel:(\s*)(.*),`, fmt.Sprintf(`PatchLevel:${1}%d,`, ver.PatchLevel), - `Suffix:(\s{4,})".*",`, fmt.Sprintf(`Suffix:${1}"%s",`, toDev)); err != nil { + `Minor:(\s*)(\d*),`, fmt.Sprintf(`Number:${1}%d,`, ver.Minor), + `PatchLevel:(\s*)(\d*),`, fmt.Sprintf(`PatchLevel:${1}%d,`, ver.PatchLevel), + `Suffix:(\s*)".*",`, fmt.Sprintf(`Suffix:${1}"%s",`, toDev)); err != nil { return err } |