From 453c57291675d7c3575e49b4db8cc41979533b96 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sybren=20A=2E=20St=C3=BCvel?= Date: Tue, 1 Oct 2024 23:12:49 +0200 Subject: [PATCH] `make update-version`: always update all relevant files Fix an issue where `make update-version` would only update the first set of files it could, and skip the remaining ones. Only relevant for developers. --- cmd/update-version/main.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/update-version/main.go b/cmd/update-version/main.go index 42fbc818..01de5567 100644 --- a/cmd/update-version/main.go +++ b/cmd/update-version/main.go @@ -31,9 +31,9 @@ func main() { var anyFileWasChanged bool if cliArgs.updateMakefile { - anyFileWasChanged = anyFileWasChanged || updateMakefile() + anyFileWasChanged = updateMakefile() || anyFileWasChanged } - anyFileWasChanged = anyFileWasChanged || updateAddon() + anyFileWasChanged = updateAddon() || anyFileWasChanged if !anyFileWasChanged { log.Warn().Msg("nothing changed")