diff --git a/ignition.changes b/ignition.changes index 845d96d..415f6ff 100644 --- a/ignition.changes +++ b/ignition.changes @@ -1,3 +1,15 @@ +------------------------------------------------------------------- +Tue Sep 24 12:58:37 UTC 2024 - Ignaz Forster + +- Add compatibility with Go 1.23 + Drop "go clean" from the upstream build script: since we build in + clean environments, we don't have caches. Additionally, the way + it is used does not even work and reports: + go: clean -cache cannot be used with package arguments + The error was masked until GO 1.23, as the test wether go + supported caching was checking for go 1.23 formatted output. + Thanks to dimstar for the fix. + ------------------------------------------------------------------- Fri Nov 24 13:20:31 UTC 2023 - iforster@suse.com diff --git a/ignition.spec b/ignition.spec index 368ce0e..056ff05 100644 --- a/ignition.spec +++ b/ignition.spec @@ -96,6 +96,7 @@ cp %{SOURCE12} dracut/30ignition/ignition-kargs-helper.sh %build sed -i -e 's|go build -ldflags|go build -buildmode=pie -ldflags|g' build +sed -i -e '/go clean/d' build env VERSION=%{version} GLDFLAGS='-X github.com/coreos/ignition/v2/internal/distro.selinuxRelabel=false -X github.com/coreos/ignition/v2/internal/distro.writeAuthorizedKeysFragment=false ' bash -x ./build %install