aboutsummaryrefslogtreecommitdiffhomepage
path: root/releaser
diff options
context:
space:
mode:
authorAnthony Fok <[email protected]>2022-08-30 03:52:16 -0600
committerAnthony Fok <[email protected]>2022-08-30 05:23:18 -0600
commit160a067c812ef127a3a06e4cdc9278b6108bb205 (patch)
tree0af91c4a0f2c473f4a7679865100fd27a118955f /releaser
parente0ba1a805aaa0d0e8ca2563c498722abb2851293 (diff)
downloadhugo-160a067c812ef127a3a06e4cdc9278b6108bb205.tar.gz
hugo-160a067c812ef127a3a06e4cdc9278b6108bb205.zip
snap: Use "snapcraftctl set-grade"
This, together with 'snapcraftctl set-version", negates the need to modify snap/snapcraft.yaml upon each release, so the corresponding code is removed from releaser/releaser.go. Also, vendorInfo is extended to include the snap version number. See #10225
Diffstat (limited to 'releaser')
-rw-r--r--releaser/releaser.go10
1 files changed, 0 insertions, 10 deletions
diff --git a/releaser/releaser.go b/releaser/releaser.go
index afb5079a1..3d00e3a22 100644
--- a/releaser/releaser.go
+++ b/releaser/releaser.go
@@ -147,16 +147,6 @@ func (r *ReleaseHandler) bumpVersions(ver hugo.Version) error {
return err
}
- snapcraftGrade := "stable"
- if ver.Suffix != "" {
- snapcraftGrade = "devel"
- }
- if err := r.replaceInFile("snap/snapcraft.yaml",
- `version: "(.*)"`, fmt.Sprintf(`version: "%s"`, ver),
- `grade: (.*) #`, fmt.Sprintf(`grade: %s #`, snapcraftGrade)); err != nil {
- return err
- }
-
var minVersion string
if ver.Suffix != "" {
// People use the DEV version in daily use, and we cannot create new themes