Compilation problems may be related to the warehouse address and permissions.
junmaqiang opened this issue · 2 comments
junmaqiang commented
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 commented
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).
Bluebugs commented
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.