Skip to content

Commit 724241c

Browse files
committed
Hack the go.mod in the build action
We cannot change the go version to 1.24+ in the go.mod because of Debian 12's old go. In order to force the checks for go1.25 replace it on the fly in the `go.mod`. This should trigger more checks as documented in https://tip.golang.org/doc/go1.24#vet
1 parent 1b1aa41 commit 724241c

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

.github/workflows/build.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# SPDX-FileCopyrightText: 2023 SUSE LLC
1+
# SPDX-FileCopyrightText: 2026 SUSE LLC
22
#
33
# SPDX-License-Identifier: Apache-2.0
44

@@ -40,6 +40,11 @@ jobs:
4040
offset=$(git rev-list --count ${tag}..)
4141
echo "VERSION=$tag-$offset" >> "$GITHUB_ENV"
4242
43+
- name: Hack go.mod
44+
run: |
45+
# Hack the go.mod to check that it really builds on 1.25
46+
sed -i 's/go [0-9.]\+/go 1.25.0/' go.mod
47+
4348
- name: Build
4449
run: |
4550
mkdir -p ./bin

0 commit comments

Comments
 (0)