本文介绍了'GoDep'不被识别为内部或外部命令的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在尝试将我的Go App部署在heroku上,为此我使用Godep作为构建包。使用命令
安装godep后,请访问github.com/tools/godep
当我尝试运行
godep保存
我收到一个错误,指出 godep未被识别为内部或外部命令。 / p>
下面是我的环境变量。
有人可以指出我要去哪里吗?
解决方案
设置环境变量中的GOBIN值解决了该问题。
I am trying to deploy my Go App on heroku, for which I am using Godep as build pack. After installing godep using the command
go get github.com/tools/godep
when I try to run
godep save
I am getting the error which states that 'godep' is not recognised as an internal or external command.
Below is my env variables.
Can someone please point out where I am going wrong ?
解决方案
Setting the GOBIN value in the environment variables fixed the issue.
这篇关于'GoDep'不被识别为内部或外部命令的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!