CI for testing GO compat 1.22.x failed to catch compat issue
Open
Nobody has claimed this yet.
- Dominant language
- Go
- Stars
- 974
- Forks
- 296
- Avg merge
- 6d 14h
- Merged PRs (30d)
- 9
Description
During the 2.21.x release we encountered an incompatibility with f40 due to ignition requiring go 1.23 or higher even though ignition has CI which explicitly tests this.
You can see the failure here:
+ cd ignition-2.21.0
+ export 'LDFLAGS=-X github.com/coreos/ignition/v2/internal/version.Raw=2.21.0 -X github.com/coreos/ignition/v2/internal/distro.selinuxRelabel=true '
+ LDFLAGS='-X github.com/coreos/ignition/v2/internal/version.Raw=2.21.0 -X github.com/coreos/ignition/v2/internal/distro.selinuxRelabel=true '
+ export GOFLAGS=-mod=vendor
+ GOFLAGS=-mod=vendor
+ echo 'Building ignition...'
++ echo ignition-2.21.0-1.fc40-1741910400
++ sha1sum
++ cut -d ' ' -f1
+ GOPATH=/builddir/build/BUILD/ignition-2.21.0/_build:/usr/share/gocode
+ GO111MODULE=on
+ go build -buildmode pie -compiler gc '-tags=rpm_crashtraceback ' -a -v -x -ldflags '-X github.com/coreos/ignition/v2/internal/version.Raw=2.21.0 -X github.com/coreos/ignition/v2/internal/distro.selinuxRelabel=true -X github.com/coreos/ignition/version=2.21.0 -B 0x720a533500b90469c56d2b0ce9989db20f9b343e -compressdwarf=false -linkmode=external -extldflags '\''-Wl,-z,relro -Wl,--as-needed -Wl,-z,pack-relative-relocs -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 -specs=/usr/lib/rpm/redhat/redhat-package-notes '\''' -o ./ignition internal/main.go
WORK=/tmp/go-build4082094123
go: cloud.google.com/go/auth in vendor/modules.txt requires go >= 1.23.0 (running go 1.22.12; GOTOOLCHAIN=local)
error: Bad exit status from /var/tmp/rpm-tmp.u6YRtS (%build)
https://kojipkgs.fedoraproject.org//work/tasks/886/130440886/build.log
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reviewing the CI configuration for Go 1.22 compatibility testing and the vendored dependency metadata shown in the build log. Reproduce the Fedora 40 build with Go 1.22.12; done means CI reliably catches dependencies requiring Go 1.23 or newer.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- go
- Domain
- build-system, ci-cd
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100