doushi1473 2017-05-01 10:40
浏览 507
已采纳

go get命令不提供输出也不起作用

I have installed go on my mac

go version

output:

go version go1.8.1 darwin/amd64

AND

go env

output:

GOARCH="amd64"
GOBIN=""
GOEXE=""
GOHOSTARCH="amd64"
GOHOSTOS="darwin"
GOOS="darwin"
GOPATH="/Users/MYUSERNAME/go/"
GORACE=""
GOROOT="/usr/local/go"
GOTOOLDIR="/usr/local/go/pkg/tool/darwin_amd64"
GCCGO="gccgo"
CC="clang"
GOGCCFLAGS="-fPIC -m64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fdebug-prefix-map=/var/folders/np/ts5bwp_91ns22l9h751h2j8r0000gn/T/go-build124313959=/tmp/go-build -gno-record-gcc-switches -fno-common"
CXX="clang++"
CGO_ENABLED="1"
PKG_CONFIG="pkg-config"
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"

when I ran the following go get command:

go get -v github.com/miku/esbulk/cmd/esbulk

it neither generating any output nor does anything. Just nothing happened.

Update 1

in GOPATH/pkg folder there is darwin_amd64 folder, in darwin_amd64 folder there is

github.com/miku/esbulk.a
  • 写回答

2条回答 默认 最新

  • douxi9245 2017-05-01 12:10
    关注
    $ go help get
    usage: go get [-d] [-f] [-fix] [-insecure] [-t] [-u] [build flags] [packages]
    
    Get downloads the packages named by the import paths, along with their
    dependencies. It then installs the named packages, like 'go install'.
    
    The -u flag instructs get to use the network to update the named packages
    and their dependencies.  By default, get uses the network to check out
    missing packages but does not use it to look for updates to existing packages.
    
    The -v flag enables verbose progress and debug output.
    
    $ 
    

    If there is nothing to do then there is nothing to report. For example, when go get is run for the first time it downloads and installs, after that it does nothing because there is nothing to do, unless you force an update:

    $ go get -v github.com/aclements/perflock/cmd/perflock 
    github.com/aclements/perflock (download)
    github.com/aclements/perflock/internal/cpupower
    github.com/aclements/perflock/cmd/perflock
    $ go get -v github.com/aclements/perflock/cmd/perflock 
    $ go get -v github.com/aclements/perflock/cmd/perflock 
    $ go get -v -u github.com/aclements/perflock/cmd/perflock 
    github.com/aclements/perflock (download)
    $ go get -v -u github.com/aclements/perflock/cmd/perflock 
    github.com/aclements/perflock (download)
    $ go get -v github.com/aclements/perflock/cmd/perflock 
    $ go get -v github.com/aclements/perflock/cmd/perflock 
    $ 
    
    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(1条)

报告相同问题?

悬赏问题

  • ¥50 导入文件到网吧的电脑并且在重启之后不会被恢复
  • ¥15 (希望可以解决问题)ma和mb文件无法正常打开,打开后是空白,但是有正常内存占用,但可以在打开Maya应用程序后打开场景ma和mb格式。
  • ¥20 ML307A在使用AT命令连接EMQX平台的MQTT时被拒绝
  • ¥20 腾讯企业邮箱邮件可以恢复么
  • ¥15 有人知道怎么将自己的迁移策略布到edgecloudsim上使用吗?
  • ¥15 错误 LNK2001 无法解析的外部符号
  • ¥50 安装pyaudiokits失败
  • ¥15 计组这些题应该咋做呀
  • ¥60 更换迈创SOL6M4AE卡的时候,驱动要重新装才能使用,怎么解决?
  • ¥15 让node服务器有自动加载文件的功能