hajimehoshi / ebiten

Ebitengine - A dead simple 2D game engine for Go
https://ebitengine.org
Apache License 2.0
10.92k stars 652 forks source link

cmd/ebitnmobile: ebitenmobile fails on go1.23 if you have GOEXPERIMENT=loopvar set #3128

Open corfe83 opened 1 day ago

corfe83 commented 1 day ago

Ebitengine Version

2.8.1

Operating System

Go Version (go version)

1.23.2

What steps will reproduce the problem?

Run ebitenmobile bind with conventional commandline arguments such as:

ebitenmobile bind -target android -javapkg your.package.name -o path/to/yourgame.aar .

What is the expected result?

Bind is successful

What happens instead?

Bind gives error:

2024/10/12 22:55:53 go [mod tidy] failed: go: errors parsing go.mod: go.mod:5: toolchain directive expects exactly one argument

Anything else you feel useful to add?

No response

hajimehoshi commented 1 day ago

IIUC, specifying GOEXPERIMENT=loopvar with Go 1.23 doesn't make sense as Go 1.23 already applies the loopvar change, but anyway this is a bug.