go get fyne/io/driver/gl@v1.0.1 无法识别的导入路径

huangapple go评论85阅读模式
英文:

go get fyne/io/driver/gl@v1.0.1 unrecognized import path

问题

尝试按照这里的安装指南进行操作,大部分过程都正常进行。但是在构建时遇到了问题。
在尝试构建时,我收到了以下消息:

> C:...\gameboy.live>go build -o gbdotlive main.go
......\go\pkg\mod\fyne.io\fyne@v1.0.1\driver\gl\gl.go:20:2: 缺少 go.sum 条目,该条目提供了 github.com/goki/freetype 包(被 fyne.io/fyne/driver/gl 导入);要添加:
go get fyne.io/fyne/driver/gl@v1.0.1

然而,运行建议的命令会引发另一个提示:

> C:...\gameboy.live>go get fyne.io/driver/gl@v1.0.1
go get fyne.io/driver/gl@v1.0.1: 无法识别的导入路径 "fyne.io/driver/gl":读取 https://fyne.io/driver/gl?go-get=1 时出错:404 Not Found

我还尝试了版本为1.4.3的驱动程序,但出现了不同的错误:

> C:...\gameboy.live>go get fyne.io/fyne/gl@v1.4.3
go get: 找到模块 fyne.io/fyne@v1.4.3,但不包含包 fyne.io/fyne/gl

有人熟悉这个问题吗?顺便说一句,我使用的是Windows系统,并且已经安装了MinGW。

英文:

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\fyne@v1.0.1\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/gl@v1.0.1

Running the suggested command however raises another prompt:

> C:...\gameboy.live>go get fyne.io/driver/gl@v1.0.1
go get fyne.io/driver/gl@v1.0.1: 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/gl@v1.4.3
go get: module fyne.io/fyne@v1.4.3 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.

答案1

得分: 0

在执行 go build -o gbdotlive main.go 之前,先运行 go mod tidy。试一试吧。

英文:

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

huangapple
  • 本文由 发表于 2021年12月19日 17:33:48
  • 转载请务必保留本文链接:https://go.coder-hub.com/70410253.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定