尝试了下gb工具,发现有个问题:
[[email protected] test]# go get github.com/constabulary/gb/... /home/gopath/src/github.com/constabulary/gb/build.go:12:2: no buildable Go source files in /home/gopath/src/github.com/constabulary/gb/internal/version
猜测是因为golang版本导致的,查询了下golang版本信息:
[[email protected] test]# go version go version go1.4.1 linux/amd64
官方针对gb对golang版本的要求: gb is compatible with Go 1.4 and later.
按道理,1.4.1应该是可以支持的,但是事实上,我升级版本到go1.7.4,之后,问题解决。
原文地址:https://www.cnblogs.com/cxbhakim/p/9122860.html
时间: 2024-10-01 06:20:26