Skip to content

Incompatible with Go 1.23, which doesn't allow //go:linkname to internal symbols, including to runtime package #1

@stefanb

Description

@stefanb

While testing Go 1.23 rc1 in

there was an error:

go install -ldflags '-X github.com/pulumi/pulumi/pkg/v3/version.Version=v3.120.0' github.com/pulumi/pulumi/pkg/v3/cmd/pulumi
# github.com/pulumi/pulumi/pkg/v3/cmd/pulumi
link: github.com/pgavlin/text/internal/bytealg: invalid reference to internal/bytealg.MaxLen

Go 1.23 no longer allows //go:linkname * runtime.* link instructioins, see

It is used several times in this module, see:

https://github.com/search?q=repo%3Apgavlin%2Ftext%20linkname&type=code

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions