首页 新闻 会员 周边

通过 golang 源码编译阿里云命令行工具 aliyuncli 出错

0
悬赏园豆:50 [待解决问题]

操作系统是 ubuntu 16.04,通过下面的命令安装好了 golang 环境

sudo apt-get install software-properties-common
sudo add-apt-repository ppa:longsleep/golang-backports
sudo apt-get update
sudo apt-get install golang-go
sudo apt install go-bindata

配置好了GOPATH

export export GOPATH=~/dev/go

按照 https://github.com/aliyun/aliyun-cli 中的步骤进行 build

 mkdir -p $GOPATH/src/github.com/aliyun
 cd $GOPATH/src/github.com/aliyun
 git clone http://github.com/aliyun/aliyun-cli.git
 git clone http://github.com/aliyun/aliyun-openapi-meta.git
 cd aliyun-cli
 make install

但总是出现下面的错误

go-bindata -o resource/metas.go -pkg resource -prefix ../aliyun-openapi-meta ../aliyun-openapi-meta/**/* ../aliyun-openapi-meta/products.json
bindata: Input path '../aliyun-openapi-meta/aegis/AutoUpgradeSas.json' is not a directory.
Makefile:26: recipe for target 'metas' failed
make: *** [metas] Error 1

请问如何解决?

dudu的主页 dudu | 高人七级 | 园豆:31003
提问于:2018-04-22 17:03
< >
分享
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册