Skip to content

Build fails with Go 1.26 rc1 #19087

@stefanb

Description

@stefanb

👋 Build problem found downstream in Homebrew (I am a maintainer):

Confirmed locally via simple go build command inside this repository:

$ go1.26rc1 build ./...
# vitess.io/vitess/go/hack
go/hack/ensure_swiss_map.go:39:38: invalid array length -1 (untyped int constant)

The Swiss-maps-ensuring Go build flag:

//go:build !goexperiment.swissmap

is no longer good enough for Go 1.26, as in Go 1.26 and later Swiss maps are enabled by default and there is no more GOEXPERIMENT=noswissmap nor GOEXPERIMENT=swissmap flag either.

See:

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions