Skip to content

Failed to build (package error)? #1992

Answered by vesche
vesche asked this question in Q&A
Jan 5, 2021 · 1 comments · 2 replies
Discussion options

You must be logged in to vote

Ah, I think I might have figured it out. I'm using fyne for my app I'm trying to build and it uses go-gl which seems to require CGO as these go OpenGL bindings were generated using Glow. I've read about the limitations on CGO in the docs. Guess I'm SOL- will look into using docker as the docs suggest or look for a different cross-build tool.

Just to comment, the error wasn't very helpful in deducing this was the issue ("build constraints exclude all Go files"):

   ⨯ release failed after 0.13s error=failed to build for linux_386: package command-line-arguments
	imports fyne.io/fyne/app
	imports fyne.io/fyne/internal/driver/glfw
	imports fyne.io/fyne/internal/painter/gl
	imports github.com/…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@caarlos0
Comment options

@vesche
Comment options

Answer selected by caarlos0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants