can't load package: package .: no buildable Go source files

后端 未结 7 740
無奈伤痛
無奈伤痛 2020-12-13 03:29

Here is the error message:

% go get     
can\'t load package: package .: no buildable Go source files in /Users/7yan00

% echo $GOPATH     
/Users/7yan00/Gol         


        
7条回答
  •  悲哀的现实
    2020-12-13 04:01

    To resolve this for my situation:

    I had to specify a more specific sub-package to install.

    Wrong:

    go get github.com/garyburd/redigo
    

    Correct:

    go get github.com/garyburd/redigo/redis
    

提交回复
热议问题