-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
cmd/fyne: command ”get” is broken with Go 1.22 #4684
Comments
Hmm, this is weird. |
I think Go 1.22 is unsupported by |
"go get is no longer supported outside of a module in the legacy GOPATH mode (that is, with GO111MODULE=off). Other build commands, such as go build and go test, will continue to work indefinitely for legacy GOPATH programs. " from https://tip.golang.org/doc/go1.22. I think we need to patch |
Thanks for the reply. I get this:
At this point I'm questioning if my Go install is still sane. I would clear it out and start fresh but I have to be careful as I have a small proxy application to support in production. I'm basically trying to review UI frameworks and find one for some simple desktop tools. |
You are missing a |
That does feel like an improvement. @Jacalz are we saying that the Fyne command line tool is essentially ignoring what is configured for GO111MODULE and setting it to off regardless? That would certainly make sense and explain why I couldn't understand what was going on. |
Sorry. My fault for giving you the wrong path. Try |
@Jacalz Thank you - that works. I did try changing the URL but still had github in there. To be clear, for my current purposes, I don't NEED this and am now fine to progress with evaluation. But if there is an actual issue here then please leave it open. Otherwise, I'm happy to close since using go install get's me past the hurdle I was having. |
Yes and no. It is forcing it to off because it made sense earlier versions when fyne/cmd/fyne/internal/commands/get.go Lines 60 to 61 in e332a5e
go install with @latest at the end :)
|
There is a genuine bug here. Lack of support for Go 1.22 to be specific. Let's get a fix into the next bug fix release :) |
You are more than welcome to reach out if you find more problems or just need help. The Gophers slack at #fyne is where we usually hang out. |
Thank you! |
The summary is great, but the conclusion over simplifies. |
Right. Good point. That is indeed problematic. |
Checklist
Describe the bug
Generally my Golang installation is working OK. I have previously used an old version of Fyne (1.x) and I don't recall any issues. I'm now trying to install fyne_settings with the command
fyne get github.com/fyne-io/fyne/cmd/fyne_settings
and I can't get past the dreaded error "go: modules disabled by GO111MODULE=off" when in fact, that is not the case.Here is the output:
How to reproduce
fyne get github.com/fyne-io/fyne/cmd/fyne_settings
Screenshots
No response
Example code
Code is not relevant to this issue
Fyne version
v2.4.4
Go compiler version
1.22.0
Operating system and version
macOS Monterey
Additional Information
Clearly, given nobody else seems to be reporting this problem, this is highly likely a 'me' problem but I'm not sure where to start.
The text was updated successfully, but these errors were encountered: