Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Not able to download and install go project

Tags:

git

ssh

go

I am a beginner to go languague and trying to download and install goa-cellar project. But I am not able to install using ssh or https github link

1.go get [email protected]:goadesign/goa-cellar.git

package [email protected]:goadesign/goa-cellar.git: unrecognized import    path "[email protected]:goadesign/goa-cellar.git" (https fetch: Get    https://[email protected]:goadesign/goa-cellar.git?go-get=1: dial tcp:    unknown port tcp/goadesign)

2.go get https://github.com/goadesign/goa-cellar.git

package https:/github.com/goadesign/goa-cellar.git: "https://" not allowed in import path

Kindly help me how to solve this ?

like image 552
Galet Avatar asked Dec 07 '22 22:12

Galet


1 Answers

Install the package without to include the protocol (http/https).

go get github.com/goadesign/goa-cellar

Please be aware that you need to set the GOPATH environment variable. If you are not sure how to do that here is an article: https://golang.org/doc/code.html#GOPATH.

like image 129
Endre Simo Avatar answered Dec 11 '22 08:12

Endre Simo