Skip to content
This repository has been archived by the owner on Jul 9, 2024. It is now read-only.

Installation failed "go get no longer supported" #51

Open
mozai opened this issue Apr 28, 2022 · 0 comments
Open

Installation failed "go get no longer supported" #51

mozai opened this issue Apr 28, 2022 · 0 comments

Comments

@mozai
Copy link

mozai commented Apr 28, 2022

using go version go1.18.1 linux/amd64

Installation instruction in readme.md says go get github.com/ofesseler/gluster_exporter

What I saw:

go: go.mod file not found in current directory or any parent directory.
'go get' is no longer supported outside a module.
To build and install a command, use 'go install' with a version,
like 'go install example.com/cmd@latest'
For more information, see https://golang.org/doc/go-get-install-deprecation
or run 'go help get' or 'go help install'.

So I tried go install github.com/ofesseler/gluster_exporter@latest

What I saw:

go: finding module for package github.com/prometheus/common/version
go: finding module for package github.com/prometheus/client_golang/prometheus/promhttp
go: finding module for package github.com/prometheus/common/log
go: finding module for package github.com/prometheus/client_golang/prometheus
go: found github.com/prometheus/client_golang/prometheus in github.com/prometheus/client_golang v1.12.1
go: found github.com/prometheus/client_golang/prometheus/promhttp in github.com/prometheus/client_golang v1.12.1
go: found github.com/prometheus/common/version in github.com/prometheus/common v0.34.0
go: finding module for package github.com/prometheus/common/log
[redacted]/go/pkg/mod/github.com/ofesseler/[email protected]/structs/xmlStructs.go:8:2: module github.com/prometheus/common@latest found (v0.34.0), but does not contain package github.com/prometheus/common/log

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant