Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump Iris to remove Go 1.21 dependency #1249

Merged
merged 2 commits into from
Sep 11, 2023
Merged

Bump Iris to remove Go 1.21 dependency #1249

merged 2 commits into from
Sep 11, 2023

Conversation

jamietanna
Copy link
Member

As part of the upgrade to Go 1.21, the Go toolchain now requires the
go directive to match the maximum Go version in use in dependencies.

This leads to any transitive dependency on Iris to result in a
requirement of the consuming project moving to Go 1.21.

We can upgrade Iris to a version that has downgraded the Go 1.21
requirement.

Closes #1221.

As part of the upgrade to Go 1.21, the Go toolchain now requires the
`go` directive to match the maximum Go version in use in dependencies.

This leads to any transitive dependency on Iris to result in a
requirement of the consuming project moving to Go 1.21.

We can upgrade Iris to a version that has downgraded the Go 1.21
requirement.

We will pin to the latest commit on HEAD until v12.2.6 is released.

Closes #1221.
@jamietanna jamietanna changed the title Bump Iris to v12.2.6 Bump Iris to remove Go 1.21 dependency Sep 11, 2023
@jamietanna jamietanna marked this pull request as ready for review September 11, 2023 07:21
As part of the upgrade to Go 1.21, the Go toolchain now requires the
`go` directive to match the maximum Go version in use in dependencies.

This leads to any transitive dependency on this library to result in a
requirement of the consuming project moving to Go 1.21.

Although in a lot of cases this may not be as problematic, it forces
consumers to migrate, which we don't need to do in this case.

As noted in #1221, dependencies on Fiber and Iris have caused Go
toolchain changes due to be required, which then requires consumers to
do the same.

By making sure we build across both the current venison and the next
version of Go - taking care to only support the two major Go versions in
use by the Go team - we can hopefully pick up on issues like this
sooner, albeit #1221 was raised super speedily!

This is a slightly more complex setup than just specifying the version
manually, but to avoid the risk of not updating it in all the places, we
can at a minimum use the `go.mod` version for the current targeted
version.

We can make sure to not `fail-fast` so we can see each of the builds'
results, instead of only seeing the first to fail.
@jamietanna jamietanna merged commit af55078 into master Sep 11, 2023
16 checks passed
@jamietanna jamietanna deleted the chore/iris branch September 11, 2023 07:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

"make test" is failed with go version 1.21.0
1 participant