Skip to content

Commit

Permalink
releaser: Fix version replacement
Browse files Browse the repository at this point in the history
  • Loading branch information
bep committed May 18, 2022
1 parent 2f9eac4 commit ee55fde
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion releaser/releaser.go
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ func (r *ReleaseHandler) bumpVersions(ver hugo.Version) error {
}

if err := r.replaceInFile("common/hugo/version_current.go",
`Minor:(\s*)(\d*),`, fmt.Sprintf(`Number:${1}%d,`, ver.Minor),
`Minor:(\s*)(\d*),`, fmt.Sprintf(`Minor:${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
Expand Down

0 comments on commit ee55fde

Please sign in to comment.