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

Compilation problems may be related to the warehouse address and permissions. #211

Open
junmaqiang opened this issue Oct 15, 2023 · 2 comments

Comments

@junmaqiang
Copy link

junmaqiang commented Oct 15, 2023

I use this code

go install github.com/fyne-io/fyne-cross@8489955341f5c1ac230697afa86034444432830d

why show this fyne/v2@v2.3.5 error and go version 1.21.3 ?

[i] Target: windows/amd64
[i] Cleaning target directories...
[✓] "temp" dir cleaned: /app/fyne-cross/tmp/windows-amd64
[✓] "bin" dir cleaned: /app/fyne-cross/bin/windows-amd64
[✓] "dist" dir cleaned: /app/fyne-cross/dist/windows-amd64
[i] Checking for go.mod: /Users/go/src/go_project_template/go.mod
[✓] go.mod found
[i] Packaging app...
2023/10/14 16:13:24 Fyne error:  Failed to inject metadata init file, omitting metadata
2023/10/14 16:13:24   Cause: exit status 1
2023/10/14 16:13:24   At: /go/pkg/mod/fyne.io/fyne/v2@v2.3.5/cmd/fyne/internal/commands/build.go:215
go: errors parsing go.mod:
/app/go.mod:3: invalid go version '1.21.3': must match format 1.23

my env

Darwin x86_64
go version go1.21.3 darwin/amd64
fyne cli version: v2.4.0
fyne-cross version v1.4.1-0.20230929231344-8489955341f5
Docker version 24.0.6, build ed223bc

Special Instructions

①I executed git init
②The remote warehouse address was added, but it was just an invalid warehouse address added randomly.

Should parameters be passed at compile time?

Originally posted by @junmaqiang in #201 (comment)

@andydotxyz
Copy link
Member

Your go.mod required v1.21 go, but the version of fyne-cross you have is v1.20.x, this is not supported by Go tools (they broke the format of version numbers).

golang/go#63370

@Bluebugs
Copy link
Contributor

With the latest fyne cross image published last weekend, this should not be a problem anymore as we use go 1.21 now in our image.

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

No branches or pull requests

3 participants