Open PaiHL opened 6 months ago
Hi @PaiHL, I encountered a similar issue to this and found a solution. It appears to be from the toolchain command in go.mod, and looking it up that is a feature from Go 1.21. As you are using 1.20.9, try updating to at least 1.21 and try the commands again.
Cheers!
Hi @PaiHL, I encountered a similar issue to this and found a solution. It appears to be from the toolchain command in go.mod, and looking it up that is a feature from Go 1.21. As you are using 1.20.9, try updating to at least 1.21 and try the commands again.
Cheers!
是的,可以升级go版本解决。
Description
dev@devdeiMac-Pro code % go install github.com/wailsapp/wails/v2/cmd/wails@latest go: github.com/wailsapp/wails/v2/cmd/wails@latest (in github.com/wailsapp/wails/v2@v2.8.2): go.mod:5: unknown directive: toolchain
To Reproduce
dev@devdeiMac-Pro code % go install github.com/wailsapp/wails/v2/cmd/wails@latest go: github.com/wailsapp/wails/v2/cmd/wails@latest (in github.com/wailsapp/wails/v2@v2.8.2): go.mod:5: unknown directive: toolchain
Expected behaviour
dev@devdeiMac-Pro code % go install github.com/wailsapp/wails/v2/cmd/wails@latest go: github.com/wailsapp/wails/v2/cmd/wails@latest (in github.com/wailsapp/wails/v2@v2.8.2): go.mod:5: unknown directive: toolchain
Screenshots
No response
Attempted Fixes
No response
System Details
Additional context
No response