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
go version: go version go1.22.1 darwin/arm64
g++ version: Apple clang version 15.0.0 (clang-1500.3.9.4) Target: arm64-apple-darwin23.4.0 Thread model: posix InstalledDir: /Library/Developer/CommandLineTools/usr/bin
The text was updated successfully, but these errors were encountered:
> go build -ldflags="-H windowsgui" ./cmd/test
github.com/webview/webview_go: build constraints exclude all Go files in C:\Users\*\go\pkg\mod\github.com\webview\w[email protected]
after a while googling, using the following fix things for me (but only for a while 😭):
You may also need to set the CGO_ENABLED=1 environment variable if you are doing cross-compilation. Also be sure to have the necessary cross-compilation toolchain on your system and that your CC and CCX environment variables are using the correct toolchains: #18 (comment)
can not build when running the command
GOOS=darwin GOARCH=amd64 go build
error:
github.com/webview/webview_go: build constraints exclude all Go files in /Users/pritishmishra/go/pkg/mod/github.com/webview/[email protected]
but the go build command works. if I do this
go build .
my go env:
go version:
go version go1.22.1 darwin/arm64
g++ version:
Apple clang version 15.0.0 (clang-1500.3.9.4) Target: arm64-apple-darwin23.4.0 Thread model: posix InstalledDir: /Library/Developer/CommandLineTools/usr/bin
The text was updated successfully, but these errors were encountered: