Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't build for Windows from Darwin with Go 1.16 #59

Closed
unquabain opened this issue Aug 6, 2021 · 4 comments
Closed

Can't build for Windows from Darwin with Go 1.16 #59

unquabain opened this issue Aug 6, 2021 · 4 comments
Labels
question Further information is requested

Comments

@unquabain
Copy link

unquabain commented Aug 6, 2021

My project builds and runs on Darwin using Go 1.16. But when I use fyne-cross to build a Windows binary, several dependency libraries fail to compile because—it appears—the Go version in the Docker containers are older.

From the output:

api/authenticate.go:77:16: undefined: io.ReadAll
api/diagnostics.go:44:16: undefined: io.ReadAll
note: module requires Go 1.16
# github.com/xuri/excelize/v2
/go/pkg/mod/github.com/xuri/excelize/v2@v2.4.1/calc.go:1907:18: undefined: strconv.ParseComplex
/go/pkg/mod/github.com/xuri/excelize/v2@v2.4.1/calc.go:1923:18: undefined: strconv.ParseComplex
/go/pkg/mod/github.com/xuri/excelize/v2@v2.4.1/calc.go:1939:18: undefined: strconv.ParseComplex
/go/pkg/mod/github.com/xuri/excelize/v2@v2.4.1/calc.go:1955:18: undefined: strconv.ParseComplex
/go/pkg/mod/github.com/xuri/excelize/v2@v2.4.1/calc.go:1971:18: undefined: strconv.ParseComplex
/go/pkg/mod/github.com/xuri/excelize/v2@v2.4.1/calc.go:1987:18: undefined: strconv.ParseComplex
/go/pkg/mod/github.com/xuri/excelize/v2@v2.4.1/calc.go:2003:18: undefined: strconv.ParseComplex
/go/pkg/mod/github.com/xuri/excelize/v2@v2.4.1/calc.go:2019:18: undefined: strconv.ParseComplex
/go/pkg/mod/github.com/xuri/excelize/v2@v2.4.1/calc.go:2039:18: undefined: strconv.ParseComplex
/go/pkg/mod/github.com/xuri/excelize/v2@v2.4.1/calc.go:2059:19: undefined: strconv.ParseComplex
/go/pkg/mod/github.com/xuri/excelize/v2@v2.4.1/calc.go:2059:19: too many errors
note: module requires Go 1.15
[✗] exit status 2

I can update the version of Go in a running fyne-cross docker container, but how can I tell the fyne-cross command to use my own container or image?

@Jacalz
Copy link
Member

Jacalz commented Aug 7, 2021

The latest release does have Go 1.16 inside the containers. Are you sure that you have the latest release installed and the latest images pulled?

You can install the latest fyne-cross using go install github.com/fyne-io/fyne-cross@latest and pulling the latest images using fyne-cross windows —pull.

@lucor lucor added the question Further information is requested label Aug 20, 2021
@lucor
Copy link
Member

lucor commented Sep 30, 2021

@unquabain did you had a chance to test the steps suggested by @Jacalz ?

@Jacalz
Copy link
Member

Jacalz commented Mar 29, 2022

@unquabain Can you still reproduce this using the steps mentioned above?

@andydotxyz
Copy link
Member

Many updates have been applied since this ticket, closing

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

4 participants