gin框架版本与dep模块在golang上返回gin版本0.0.0。

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

gin framework version with dep module on golang return gin version 0.0.0

问题

我有一个使用dep模块的golang项目,版本如下:

dep:
 version     : v0.5.4
 build date  : 2019-07-01
 git hash    : 1f7c19e
 go version  : go1.12.6
 go compiler : gc
 platform    : linux/amd64
 features    : ImportDuringSolve=false

我尝试安装gin框架,但当我尝试获取gin的版本时,响应如下:

$gin --version
>gin version 0.0.0

我尝试更新gin,但仍然是相同的情况,我该怎么办?

英文:

I have a golang with dep module project with version like this

dep:
 version     : v0.5.4
 build date  : 2019-07-01
 git hash    : 1f7c19e
 go version  : go1.12.6
 go compiler : gc
 platform    : linux/amd64
 features    : ImportDuringSolve=false

I tried to install gin framework and when I try to get version of gin, the response like this

$gin --version
>gin version 0.0.0

I tried to update gin but still the same, what should I do?

答案1

得分: 1

你应该做什么?

更新到Go 1.17版本。

将此项目设置为模块感知。

更新依赖项。

英文:

> what should i do?

Update to Go 1.17

Make this a project Module aware.

Update dependencies.

huangapple
  • 本文由 发表于 2021年10月26日 12:21:37
  • 转载请务必保留本文链接:https://go.coder-hub.com/69717439.html
匿名

发表评论

匿名网友

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

确定