air
air copied to clipboard
This version of tmp\main.exe is not compatible with the version of Windows you're running.
Im using windows 11 pro and install the latest go version for windows, i just want to test for hello world file but when i run air i got this error This version of D:\dev\go-test\tmp\main.exe is not compatible with the version of Windows you're running. Check your computer's system information and then contact the software publisher.
go version go1.23.1 windows/amd64
How to fix this?
If anyone sees runs into this, it was because main.go was not in "main" package. My ide had refactored the package name when I moved main.go. Changing package back to main fixed it.