Skip to content

[release-22.0] Support Go 1.26 and later with Swiss maps always enabled (#19088)#19765

Merged
arthurschreiber merged 1 commit intorelease-22.0from
backport-19088-to-release-22.0
Mar 31, 2026
Merged

[release-22.0] Support Go 1.26 and later with Swiss maps always enabled (#19088)#19765
arthurschreiber merged 1 commit intorelease-22.0from
backport-19088-to-release-22.0

Conversation

@arthurschreiber
Copy link
Copy Markdown
Member

Description

This is a backport of #19088

Signed-off-by: Štefan Baebler <319826+stefanb@users.noreply.github.com>
Copilot AI review requested due to automatic review settings March 31, 2026 12:48
@github-actions github-actions bot added this to the v22.0.5 milestone Mar 31, 2026
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Backports upstream change to avoid false compile-time failures when building Vitess with Go 1.26+, where Swiss maps are always enabled and the GOEXPERIMENT=noswissmap toggle no longer exists.

Changes:

  • Update the build constraint on ensure_swiss_map.go so it no longer applies on Go 1.26+.
  • Clarify inline comments to reflect Swiss map behavior across Go 1.24–1.26+.

@arthurschreiber arthurschreiber marked this pull request as ready for review March 31, 2026 12:53
@arthurschreiber arthurschreiber enabled auto-merge (squash) March 31, 2026 12:54
@arthurschreiber arthurschreiber merged commit dd182a1 into release-22.0 Mar 31, 2026
123 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants