Search code examples
goinstallationfyne

go get fyne/io/driver/[email protected] unrecognized import path


Trying to follow the installation guide here and most of the process is working. I'm having an issue with building it however. When trying to build I'm getting this message:

C:...\gameboy.live>go build -o gbdotlive main.go ......\go\pkg\mod\fyne.io\[email protected]\driver\gl\gl.go:20:2: missing go.sum entry for module providing package github.com/goki/freetype (imported by fyne.io/fyne/driver/gl); to add: go get fyne.io/fyne/driver/[email protected]

Running the suggested command however raises another prompt:

C:...\gameboy.live>go get fyne.io/driver/[email protected] go get fyne.io/driver/[email protected]: unrecognized import path "fyne.io/driver/gl": reading https://fyne.io/driver/gl?go-get=1: 404 Not Found

I've tried going for the version 1.4.3 driver too which raises a different error:

C:...\gameboy.live>go get fyne.io/fyne/[email protected] go get: module fyne.io/[email protected] found, but does not contain package fyne.io/fyne/gl

Anybody familiar with this issue? FYI I'm on Windows and have MinGw installed already.


Solution

  • Just run go mod tidy before exec go build -o gbdotlive main.go.Have a try.