must put a VERSION file in $GOROOT

Go编译包如下错误:

Building Go cmd/dist using /opt/go-linux-mips64le-bootstrap. (go1.16.2 linux/mips64le)
go tool dist: FAILED: not a Git repo; must put a VERSION file in $GOROOT
已邀请:

OpenSkill - OpenSkill官方账号

主要是因为,必须有个VERSION文件,来标识拿哪个版本, 解决:

[root@mips src]# vim $GOROOT/VERSION
go1.16.2


要回复问题请先登录注册