【问题标题】:go get wails is not installing properlygo get wails 没有正确安装
【发布时间】:2020-01-04 16:04:36
【问题描述】:

尝试使用... golang 和 wails... 但在此之后...

go get github.com/wailsapp/wails/cmd/wails

我收到了。

   ../../github.com/wailsapp/wails/cmd/semver.go:21:3: cannot use semverVersion (type semver.Version) as type *semver.Version in field value
../../github.com/wailsapp/wails/cmd/semver.go:48:40: cannot use s.Version (type *semver.Version) as type semver.Version in argument to constraint.Validate
../../github.com/wailsapp/wails/cmd/semver.go:64:40: cannot use s.Version (type *semver.Version) as type semver.Version in argument to constraint.Validate
../../github.com/wailsapp/wails/cmd/semver.go:91:35: cannot use c[j].Version (type *semver.Version) as type semver.Version in argument to c[i].Version.LessThan

wails init 也不起作用。

已安装最新版本的 get 和 golang。

有什么建议吗?

【问题讨论】:

  • 哀号应用程序被a change 破坏为github.com/masterminds/semver
  • 所以我应该等待修复?我假设
  • 您可以等待修复或签出旧版本的 github.com/masterminds/semver。

标签: vue.js go


【解决方案1】:

确保你的 shell 文件有:

export GO111MODULE=on
export PATH=$PATH:~/go/bin

【讨论】:

    【解决方案2】:

    go get github.com/wailsapp/wails/cmd/wails 确实被 Masterminds/semver 的更改破坏了,但是安装 Wails 的官方方法是在安装之前确保您拥有GO111MODULE=on。这通常可以保护您免受此问题的影响。

    【讨论】:

    • 这不适合我。该命令仍未安装。
    • 检查您的 PATH 中是否包含 go/bin 目录。
    猜你喜欢
    • 2017-03-21
    • 2017-04-26
    • 2019-01-07
    • 2019-01-27
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多