golang make build 报错:fatal: No names found, cannot describe anything

原因:

本地仓库(远程仓库)没有可用的tag

git describe应该返回  v1.0.0-5-gb99f464f

  • v1.0.0-表示最近的tag名
  • 5-代表当前commit相对于tag(v4.0.0),已有5个commit
  • g-只是一个标识符,b99f464f代表当前的commit id

猜你喜欢

转载自blog.csdn.net/feikillyou/article/details/110521504