You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Command wails build -compiler go1.20.12 fails to complete when default go version installed is 1.21. The reason is binding generation process where there is no compiler setting. Go 1.21 forcibly adds line toolchain go1.21.5 to go.mod file and it becomes broken for 1.20.
Description
Command
wails build -compiler go1.20.12
fails to complete when default go version installed is 1.21. The reason is binding generation process where there is no compiler setting. Go 1.21 forcibly adds linetoolchain go1.21.5
togo.mod
file and it becomes broken for 1.20.wails/v2/pkg/commands/bindings/bindings.go
Lines 48 to 55 in aa8cd7c
It would also be nice for
wails dev
to support-compiler
flag to avoid manual editinggo.mod
for release build.To Reproduce
go install golang.org/dl/go1.20.12@latest
,go1.20.12 download
)wails init
toolchain 1.21.x
fromgo.mod
and change version togo 1.20
wails build -compiler go1.20.12
Error output:
Expected behaviour
Compilation successful with Go 1.20
Screenshots
No response
Attempted Fixes
Workaround:
wails build -compiler go1.20.12 -skipbindings
and editgo.mod
every time before build.System Details
Additional context
Compilation with 1.20 is needed for Windows 7, although there is no official support, but it works
The text was updated successfully, but these errors were encountered: