Error either with glide install or with go mod vendor

Hello,

I’m trying to compile:
github.com_dennisstritzke_ipsec_exporter

doing glide install I get:

I’ve replaced / with _

|[ERROR]|Error scanning github.com_cespare_xxhash_v2: cannot find package “.” in:|

with go mod vendor:

no matching versions for query “latest”

I’ve the latest version installed:

go version go1.14.6 linux/amd64

and my env is:

GO111MODULE=“on”
GOARCH=“amd64”
GOBIN=""
GOCACHE="/root/.cache/go-build"
GOENV="/root/.config/go/env"
GOEXE=""
GOFLAGS=""
GOHOSTARCH=“amd64”
GOHOSTOS=“linux”
GOINSECURE=""
GONOPROXY=""
GONOSUMDB=""
GOOS=“linux”
GOPATH="/root/go"
GOPRIVATE=""
GOPROXY=“https://proxy.golang.org,direct”
GOROOT="/usr/local/go"
GOSUMDB=“sum.golang.org
GOTMPDIR=""
GOTOOLDIR="/usr/local/go/pkg/tool/linux_amd64"
GCCGO=“gccgo”
AR=“ar”
CC=“gcc”
CXX=“g++”
CGO_ENABLED=“1”
GOMOD="/root/go/src/go.mod"
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"
PKG_CONFIG=“pkg-config”
GOGCCFLAGS="-fPIC -m64 -pthread -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build799110821=/tmp/go-build -gno-record-gcc-switches"

I’m very very new to golang, so can someone point me in the right direction?

The info I found so far didn’t help.

Thanks in advance.

I’ve ommited some info because it wasn’t allowing me to post with error that I could only put 2 links.

I tried:

go get github.com/dennisstritzke/ipsec/exporter

But got the error:

fatal: could not read Username for 'https://github.com': terminal prompts disabled

I then tried just going to that github page and got a 404.

I don’t seem to have access to that repository, so I cannot test to figure out what’s wrong with the package. Do you have access? What message do you get when you try to go get it without “glide?”

Hi,

The last _ is in fact an underscore, sorry about not being clear.

so it must be

go get github.com/dennisstritzke/ipsec_exporter

But I was able to go around it installing everything from apt and then just put the GOPATH.

I don’t understand why when I was trying to use the latest version from tar it was failing.

The apt version is old, but it’s working.

go version go1.10.4 linux/amd64

Thank you for your reply.