I have a basic Go script and when I run it on Windows using go run ./Core/Main
nothing happens. And when I run it using verbose mode all that outputs is github.com/go-gl/gl/v2.1/gl
. My code runs just fine on my MacBook. I tried running it on a Windows computer and I got this error at first:
package BotMain/Core/Main imports fyne.io/fyne/v2/app imports fyne.io/fyne/v2/internal/driver/glfw imports fyne.io/fyne/v2/internal/driver/common imports fyne.io/fyne/v2/internal/painter/gl imports github.com/go-gl/gl/v2.1/gl: build constraints exclude all Go files in /Users/ahmedzaidan/go/pkg/mod/github.com/go-gl/gl@v0.0.0-20211210172815-726fda9656d6/v2.1/gl
I got this fixed by following the steps on this Fyne link and setting up MSYS2. I added it to system Path and I can run gcc --version
on any terminal. I then did go clean -modcache
and ran go mod tidy
which both executed correctly. Now when I run go run ./Core/Main
nothing happens. I'd appreciate some help.