Skip to content
New issue

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

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

Already on GitHub? # to your account

Go v1.21 support #204

Closed
Klaus-Tockloth opened this issue Aug 30, 2023 · 2 comments · Fixed by fyne-io/fyne-cross-images#31
Closed

Go v1.21 support #204

Klaus-Tockloth opened this issue Aug 30, 2023 · 2 comments · Fixed by fyne-io/fyne-cross-images#31

Comments

@Klaus-Tockloth
Copy link

I use the new slog package coming with go v1.21.

# compile for 'linux' in Docker container
fyne-cross linux \
-pull \
-app-build 1 \
-name ucrc \
-arch amd64 \
-icon ./Icons-2/refresh_116834_blau_512x512_whiteround.png
[i] Target: linux/amd64
[i] Checking for a newer version of the docker image: docker.io/fyneio/fyne-cross-images:linux
[✓] Image is up to date
[i] Cleaning target directories...
[✓] "bin" dir cleaned: /app/fyne-cross/bin/linux-amd64
[✓] "dist" dir cleaned: /app/fyne-cross/dist/linux-amd64
[✓] "temp" dir cleaned: /app/fyne-cross/tmp/linux-amd64
[i] Checking for go.mod: /Users/klaustockloth/go/src/ucrp.vwg/ucrc/go.mod
[✓] go.mod found
[i] Packaging app...
benchmark.go:5:2: package log/slog is not in GOROOT (/usr/local/go/src/log/slog)
note: imported by a module that requires go 1.21

error building application: exit status 1
[✗] could not package the Fyne app: could not package the Fyne app: exit status 1
% fyne-cross version
fyne-cross version v1.4.0

Questions:

  • Is there an ETA for go v1.21 support in fyne-cross?
  • Is there any workaround to use fyne-cross with go v1.21?
@Jacalz
Copy link
Member

Jacalz commented Aug 30, 2023

Is there an ETA for go v1.21 support in fyne-cross?

We always wait for at least one point release before upgrading. It needs to be stable before we force everyone onto a new version.

I don’t think there is any workaround but I might be wrong.

@Bluebugs
Copy link
Contributor

As for the workaround, you can modify the Dockerfile of fyne-cross-image and generate the image locally in the mean time.

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

Successfully merging a pull request may close this issue.

3 participants