make fails due to fyne.io/fyne/v2 dependency
Make failed repeatedly, with apparently different points of failure while finding dependencies, then settled into a pattern where it always shows the same error:
mc0e@x1x ~/src/itd $ make go build go: finding fyne.io/fyne/v2 v2.1.4 go: finding fyne.io/fyne/v2 v2.1.0 go: firstname.lastname@example.org: unknown revision fyne.io/fyne/v2.1.4 go: email@example.com: unknown revision fyne.io/fyne/v2.1.0 go: error loading module requirements make: *** [Makefile:7: all] Error 1
I don't know all the ins and outs of go builds, and haven't traced this through in any depth, but I suspect that the repository has moved from fyne.io to github, and while this has been patched up with redirects, those have not kept up with new versions. Specifically URLs like https://fyne.io/fyne/v2.1.4 give a 404 error.
I guess it's an upstream problem, but breaks this build at present, and perhaps there's a workaround.
mc0e@x1x ~/src/itd $ go get fyne.io/fyne/v2 go: finding fyne.io/fyne/v2 v2.1.0 go: finding fyne.io/fyne/v2 v2.1.4 go: firstname.lastname@example.org: unknown revision fyne.io/fyne/v2.1.0 go: email@example.com: unknown revision fyne.io/fyne/v2.1.4 go: error loading module requirements
Interesting. The build succeeds for me. I created an entirely new Go environment and all the dependencies downloaded and installed fine.
The URLs should result in 404s as the go tool checks for a meta tag in the HTML to resolve the actual location of the package and which VCS it's using. To see the import path of a package, simply look at its
go.mod file at the
module directive. For fyne, it's
fyne.io/fyne/v2, as seen here
What version of Go are you using? ITD only supports the two latest versions of Go, which means currently, the earliest supported version is 1.17, as mentioned in the README.
This issue hasn't been commented on in a month and I cannot reproduce this, so I will close this issue.
Deleting a branch is permanent. It CANNOT be undone. Continue?