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 the supported Go version to 1.23 #1033

Merged
merged 5 commits into from
Sep 16, 2024

Conversation

eskultety
Copy link
Member

Go 1.23 was released last month, so bump the max supported version to reflect that. Most notable change from 1.23 regarding Go tooling is the introduction of telemetry data gathering which is opt-in by default. Patch 2 disables telemetry explicitly just in case Go would change stance on this in the future.
The lack of workspace vendoring support from 1.22 still remains true here.

Maintainers will complete the following section

  • Commit messages are descriptive enough
  • Code coverage from testing does not decrease and new code is covered
  • New code has type annotations
  • OpenAPI schema is updated (if applicable)
  • DB schema change has corresponding DB migration (if applicable)
  • README updated (if worker configuration changed, or if applicable)
  • Draft release notes are updated before merging

@taylormadore
Copy link
Contributor

The changes LGTM, but we need something like #1034 to fix the CI

README.md Outdated Show resolved Hide resolved
Copy link
Contributor

@brunoapimentel brunoapimentel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This LGTM. We just need to fix the CI.

I left a niptick comment that can be ignored

When basic support for 1.22, i.e. without workspace vendoring was
introduced, the docs wasn't updated accordingly, fix that.

Fixes: fe18efa

Signed-off-by: Erik Skultety <[email protected]>
Quite expectedly the original test value of "1.23.0" has already been
reached, so instead of bumping it with each Go version this patch sets
the max test Go version to some really big number which we won't hit
for a very long while.

Signed-off-by: Erik Skultety <[email protected]>
Go 1.23 introduced an opt-in telemetry feature to capture how the
toolchains are used [1]. Although it's opt-in today, it may not be the
case tomorrow, so explicitly disable telemetry data gathering according
to [2].
This is safe to do even before bumping the Go version to 1.23
because the check revolves around the GOTELEMETRY (read-only) env
variable which doesn't exist on Go versions prior 1.23.

[1] https://tip.golang.org/doc/go1.23#telemetry
[2] https://pkg.go.dev/cmd/go@master#hdr-Manage_telemetry_data_and_settings

Signed-off-by: Erik Skultety <[email protected]>
Go 1.23 has been released [1], luckily with no real tangible impact, so
we not considering the missing 1.22 workspace vendoring support it is
safe for us to bump the version.

[1] https://tip.golang.org/doc/go1.23

Signed-off-by: Erik Skultety <[email protected]>
The lack of workspace vendoring support from 1.22 remains true even for
1.23.

Signed-off-by: Erik Skultety <[email protected]>
@taylormadore taylormadore added this pull request to the merge queue Sep 16, 2024
Merged via the queue into containerbuildsystem:master with commit 2e4795a Sep 16, 2024
14 checks passed
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.

3 participants