golang framework gin problems when running govendor fetch

0

I'm trying the next gin that is a go framework

link

The installation process takes the following steps:

Go get govendor

$ go get github.com/kardianos/govendor

Create your project folder and cd inside

$ mkdir -p $GOPATH/src/github.com/myusername/project && cd "$_"

Vendor init your project and add gin

$ govendor init

But the problem is that when executing the following instruction:

govendor fetch github.com/gin-gonic/[email protected]

I get the following error in the terminal:

# cd /home/usuario/go/.cache/govendor/github.com/gin-gonic/gin; git fetch
fatal: unable to access 'https://github.com/gin-gonic/gin/': gnutls_handshake() failed: Handshake failed
Error: failed to download repo into "/home/usuario/go/.cache/govendor/github.com/gin-gonic/gin" exit status 128
Failed to fetch package "github.com/gin-gonic/gin"
github.com/kardianos/govendor/context.(*Context).Alter
        /home/usuario/go/src/github.com/kardianos/govendor/context/modify.go:712
github.com/kardianos/govendor/run.(*runner).Modify
        /home/usuario/go/src/github.com/kardianos/govendor/run/modify.go:152
github.com/kardianos/govendor/run.(*runner).run
        /home/usuario/go/src/github.com/kardianos/govendor/run/run.go:98
github.com/kardianos/govendor/run.Run
        /home/usuario/go/src/github.com/kardianos/govendor/run/run.go:44
main.main
        /home/usuario/go/src/github.com/kardianos/govendor/main.go:35
runtime.main
        /usr/local/go/src/runtime/proc.go:198
runtime.goexit
        /usr/local/go/src/runtime/asm_amd64.s:2361

Someone can tell me what I am missing or what I am doing wrong

the go version I'm using is:

go version go1.10.1 linux / amd64

    
asked by Sanx 22.04.2018 в 22:28
source

1 answer

0

Only as a test. Try to do the dependency fetch by hand, and then compile again.

go get github.com/gin-gonic/gin

If the error persists, share the 'git pull' of the repo in greater detail to understand a little better what is the disadvantage of doing the SSLHandShake

    
answered by 23.04.2018 в 15:31