make fails due to fyne.io/fyne/v2 dependency #17

Closed
opened 2022-06-28 12:04:43 +00:00 by mc0e · 3 comments

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: fyne.io/fyne/v2@v2.1.4: unknown revision fyne.io/fyne/v2.1.4
go: fyne.io/fyne/v2@v2.1.0: 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.

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: fyne.io/fyne/v2@v2.1.4: unknown revision fyne.io/fyne/v2.1.4 go: fyne.io/fyne/v2@v2.1.0: 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.
Author

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: fyne.io/fyne/v2@v2.1.0: unknown revision fyne.io/fyne/v2.1.0
go: fyne.io/fyne/v2@v2.1.4: unknown revision fyne.io/fyne/v2.1.4
go: error loading module requirements
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: fyne.io/fyne/v2@v2.1.0: unknown revision fyne.io/fyne/v2.1.0 go: fyne.io/fyne/v2@v2.1.4: unknown revision fyne.io/fyne/v2.1.4 go: error loading module requirements ```
Owner

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.

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](https://github.com/fyne-io/fyne/blob/master/go.mod#L1=) 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.
Owner

This issue hasn't been commented on in a month and I cannot reproduce this, so I will close this issue.

This issue hasn't been commented on in a month and I cannot reproduce this, so I will close this issue.
Elara6331 added the
Bug
label 2022-08-20 20:13:01 +00:00
Sign in to join this conversation.
No description provided.