2016-10-10 124 views
0

我試圖部署本地實例transfer.sh嘗試構建transfer.sh時出錯

然而,當我運行:

go run transfersh-server/*.go -provider=local --port 8080 --temp=/tmp/ --basedir=/tmp/ 

我得到:

transfersh-server/virustotal.go:30:2: cannot find package "github.com/dutchcoders/go-virustotal" in any of: 
    /usr/lib/go-1.6/src/github.com/dutchcoders/go-virustotal (from $GOROOT) 
    /usr/share/go/src/github.com/dutchcoders/go-virustotal (from $GOPATH) 
transfersh-server/handlers.go:56:2: cannot find package "github.com/russross/blackfriday" in any of: 
    /usr/lib/go-1.6/src/github.com/russross/blackfriday (from $GOROOT) 
    /usr/share/go/src/github.com/russross/blackfriday (from $GOPATH) 
[email protected]:/home/mihai/transfer.sh# echo $GOROOT 

$GOPATH是:

/usr/share/go 

任何想法?

回答

1

運行go get github.com/dutchcoders/go-virustotal它應該爲你下載該軟件包