air icon indicating copy to clipboard operation
air copied to clipboard

This version of tmp\main.exe is not compatible with the version of Windows you're running.

Open fcdont opened this issue 1 year ago • 1 comments

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?

fcdont avatar Sep 22 '24 19:09 fcdont

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.

NickMckloski avatar Apr 06 '25 18:04 NickMckloski