From 6f38ac75eab89bea3a29e9edcfd257265315a56f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sybren=20A=2E=20St=C3=BCvel?= Date: Tue, 1 Oct 2024 21:10:49 +0200 Subject: [PATCH] 'make update-version': don't update website Do not update the website via `make update-website`. Which version of Flamenco is published on the website is managed manually, independently of the version in the Git repo. --- cmd/update-version/main.go | 1 - cmd/update-version/website.go | 28 ---------------------------- 2 files changed, 29 deletions(-) delete mode 100644 cmd/update-version/website.go diff --git a/cmd/update-version/main.go b/cmd/update-version/main.go index e7494240..42fbc818 100644 --- a/cmd/update-version/main.go +++ b/cmd/update-version/main.go @@ -34,7 +34,6 @@ func main() { anyFileWasChanged = anyFileWasChanged || updateMakefile() } anyFileWasChanged = anyFileWasChanged || updateAddon() - anyFileWasChanged = anyFileWasChanged || updateWebsite() if !anyFileWasChanged { log.Warn().Msg("nothing changed") diff --git a/cmd/update-version/website.go b/cmd/update-version/website.go deleted file mode 100644 index 489dac55..00000000 --- a/cmd/update-version/website.go +++ /dev/null @@ -1,28 +0,0 @@ -package main - -import ( - "fmt" - "strings" - - "github.com/rs/zerolog/log" -) - -const websiteFile = "web/project-website/data/flamenco.yaml" - -// updateWebsite changes the version number of the latest version in the project -// website. -// Returns whether the file actually changed. -func updateWebsite() bool { - replacer := func(line string) string { - if !strings.HasPrefix(line, "latestVersion: ") { - return line - } - return fmt.Sprintf("latestVersion: %q", cliArgs.newVersion) - } - - fileWasChanged, err := updateLines(websiteFile, replacer) - if err != nil { - log.Fatal().Err(err).Msg("error updating project website") - } - return fileWasChanged -}