go-flutter-desktop / go-flutter

Flutter on Windows, MacOS and Linux - based on Flutter Embedding, Go and GLFW.
https://hover.build/
BSD 3-Clause "New" or "Revised" License
5.84k stars 286 forks source link

hover: failed to read the 'go.mod' file: C:\Users\Administrator\Downloads\my_app\go\go.mod: C:\Users\Administrator\Downloads\my_app\go\go.mod:3: invalid go version '1.21.5': must match format 1.23 #694

Closed Sevule closed 5 months ago

Sevule commented 7 months ago

Hover doctor

$ hover doctor
hover: Hover version v0.47.2 running on windows
hover: Sharing packaging tools
hover: darwin-bundle is supported
hover: Packaging darwin-dmg is not supported on windows
hover: To still package darwin-dmg on windows you need to run hover with the `--docker` flag.
hover: Packaging darwin-pkg is not supported on windows
hover: To still package darwin-pkg on windows you need to run hover with the `--docker` flag.
hover: Packaging linux-appimage is not supported on windows
hover: To still package linux-appimage on windows you need to run hover with the `--docker` flag.
hover: Packaging linux-deb is not supported on windows
hover: To still package linux-deb on windows you need to run hover with the `--docker` flag.
hover: Packaging linux-pkg is not supported on windows
hover: To still package linux-pkg on windows you need to run hover with the `--docker` flag.
hover: Packaging linux-rpm is not supported on windows
hover: To still package linux-rpm on windows you need to run hover with the `--docker` flag.
hover: Packaging linux-snap is not supported on windows
hover: To still package linux-snap on windows you need to run hover with the `--docker` flag.
hover: To package windows-msi these tools are required: candle
hover: Install the WiX Toolset from https://wixtoolset.org/releases/
hover: To still package windows-msi without the required tools installed you need to run hover with the `--docker` flag.
hover:
hover: Sharing flutter version
Flutter 3.18.0-0.2.pre • channel beta • https://github.com/flutter/flutter.git
Framework • revision fed06b31d9 (33 hours ago) • 2023-12-13 14:53:33 -0800
Engine • revision 39c6dc9bdd
Tools • Dart 3.3.0 (build 3.3.0-174.3.beta) • DevTools 2.30.0
hover: Flutter engine commit: https://github.com/flutter/engine/commit/39c6dc9bdd3ba2bc387e6e14b72fce5f46abfcae
hover: Finding out the C compiler version
gcc (tdm64-1) 10.3.0
Copyright (c) 2020 Free Software Foundation, Inc.
本程序是自由软件;请参看源代码的版权声明。本软件没有任何担保;
包括没有适销性和某一专用目的下的适用性担保。
hover: Sharing the content of go.mod
module my_app/go

go 1.21.5

require (
        github.com/go-flutter-desktop/go-flutter v0.52.2
        github.com/pkg/errors v0.9.1
)

require (
        github.com/Xuanwo/go-locale v1.1.0 // indirect
        github.com/go-gl/gl v0.0.0-20211210172815-726fda9656d6 // indirect
        github.com/go-gl/glfw/v3.3/glfw v0.0.0-20220712193148-63cf1f4ef61f // indirect
        golang.org/x/sys v0.0.0-20211023085530-d6a326fbbf70 // indirect
        golang.org/x/text v0.3.7 // indirect
)
hover: Sharing the content of hover.yaml
application-name: ""
executable-name: ""
package-name: ""
organization-name: com.myapp
license: ""
target: lib/main_desktop.dart
branch: ""
cache-path: ""
opengl: ""
engine-version: ""
hover: Sharing the content of go/cmd
go\cmd\main.go  go\cmd\options.go

Error output

Using hover run to run my application, I get the following error:

hover: Using engine from cache
hover: Cleaning the build directory
hover: listing available plugins:
hover: Bundling flutter app
Flutter assets will be downloaded from https://storage.flutter-io.cn. Make sure you trust this source!
hover: failed to read the 'go.mod' file: C:\Users\Administrator\Downloads\my_app\go\go.mod: C:\Users\Administrator\Downloads\my_app\go\go.mod:3: invalid go version '1.21.5': must match format 1.23

I run "hover run"to run my project,but I have a error. hover: failed to read the 'go.mod' file: C:\Users\Administrator\Downloads\my_app\go\go.mod: C:\Users\Administrator\Downloads\my_app\go\go.mod:3: invalid go version '1.21.5': must match format 1.23

hype1type commented 5 months ago

the same invalid go version '1.21.6': must match format 1.23