Skip to content

Tinygo 0.41.1 is incompatible with Go 1.23 when compiling to WASM #5446

Description

@Darckfast

When compiling this project https://github.com/Darckfast/workers-go/tree/main/_apps/_worker to wasm with go@1.23 and tinygo@0.41.1 it gives out the following error

# net/http
../../../../.cache/tinygo/goroot-.../src/net/http/fs.go:865:27: undefined: strings.FieldsFuncSeq
../../../../.cache/tinygo/goroot-.../src/net/http/fs.go:1025:26: undefined: strings.SplitSeq

Finished in 664.7ms

Upon close inspection, strings.FieldsFuncSeq and strings.SplitSeq functions were only introduced on Go 1.24 https://go.dev/doc/go1.24#stringspkgstrings

I'm opening this issue because the Go compatibility matrix shows tinygo 0.41.0+ as compatible with Go 1.23

Image

It works fine when compiling with go@1.24 and tinygo@0.41.1 + this fix: #5351

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingnext-releaseWill be part of next release

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions