Skip to content

GopherJS does not support Go 1.23 due to new restrictions. #1352

Closed
@different55

Description

@different55

When installing according to the instructions in the README:

go install github.com/gopherjs/gopherjs@v1.19.0-beta1

On an amd64 darwin machine running Go 1.23.1, I get this final line of output:

link: github.com/visualfc/goembed/parser: invalid reference to go/build.parseGoEmbed

Doing a little digging, it seems like this is because goembed uses the //go:linkname directive to access Go's own internal parseGoEmbed function, which as of 1.23 is apparently not allowed.

As a workaround, I can confirm that -ldflags=-checklinkname=0 works to roll back this new behavior temporarily, maybe this should be documented in the README until this issue is resolved more cleanly?

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