0

我在运行 go install $(glide nv) 命令时遇到问题。我从 go workspace 目录的 src 文件夹中的项目文件夹中运行此命令

所以基本上我这样做:

%GOPATH%/src/my/project/ go install $(glide nv)

我得到的错误信息如下:

can't load package: package $(glide: cannot find package "$(glide" in any of:            
        C:\Go\src\$(glide (from $GOROOT)                                                 
        W:\GO_WORKSPACE\src\$(glide (from $GOPATH)                              
can't load package: package nv): cannot find package "nv)" in any of:                    
        C:\Go\src\nv) (from $GOROOT)                                                     
        W:\GO_WORKSPACE\src\nv) (from $GOPATH)                  

我之前在那个项目上运行 glide install 没有问题。

我错过了什么?

4

1 回答 1

0

它适用于powershell。在项目目录运行命令:

go install $(glide nv)
于 2017-09-14T12:54:34.937 回答