Skip to content

Build fails with Go 1.26 #65761

@stefanb

Description

@stefanb

Feature Request

Is your feature request related to a problem? Please describe:

Trying to build tidb with Go 1.26 (rc2) fails with
panic: The hack package only supports go1.25, please confirm the correctness of the ABI before upgrading

Describe the feature you'd like:

Buildable with Go 1.26, eg in

Describe alternatives you've considered:

Pinning Go to 1.25 even after 1.26 is released.

Teachability, Documentation, Adoption, Migration Strategy:

It fails at check:

func checkMapABI() {
if !strings.Contains(runtime.Version(), `go1.25`) {
panic("The hack package only supports go1.25, please confirm the correctness of the ABI before upgrading")
}
}

which was introduced in recent

Metadata

Metadata

Assignees

No one assigned

    Labels

    contributionThis PR is from a community contributor.type/feature-requestCategorizes issue or PR as related to a new feature.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions