Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't install junos_exporter #189

Open
n1nj444 opened this issue May 23, 2022 · 3 comments
Open

Can't install junos_exporter #189

n1nj444 opened this issue May 23, 2022 · 3 comments

Comments

@n1nj444
Copy link

n1nj444 commented May 23, 2022

Hi,
I get an issue to install junos_exporter :
go get github.com/czerwonk/junos_exporter
github.com/czerwonk/junos_exporter imports
github.com/prometheus/common/log: cannot find module providing package github.com/prometheus/common/log

My OS : CentOS Linux 7 (Core)

Do you have an idea ?

@mweinelt
Copy link

Seeing the same problem on 1.16.2 and 1.17.10, likely similar to #145.

❯ GOPATH=/tmp/test go get -u github.com/czerwonk/junos_exporter
go: downloading github.com/czerwonk/junos_exporter v0.7.1
go: downloading github.com/prometheus/client_golang v1.12.2
go: downloading github.com/prometheus/common v0.35.0
go: downloading gopkg.in/yaml.v2 v2.4.0
go: downloading golang.org/x/crypto v0.0.0-20220525230936-793ad666bf5e
go: downloading github.com/prometheus/common v0.32.1
go: downloading github.com/prometheus/client_model v0.2.0
go: downloading github.com/beorn7/perks v1.0.1
go: downloading github.com/cespare/xxhash/v2 v2.1.2
go: downloading github.com/golang/protobuf v1.5.2
go: downloading github.com/prometheus/procfs v0.7.3
go: downloading golang.org/x/sys v0.0.0-20220114195835-da31bd327af9
go: downloading google.golang.org/protobuf v1.26.0
go: downloading github.com/matttproud/golang_protobuf_extensions v1.0.1
go: downloading github.com/cespare/xxhash v1.1.0
go: downloading golang.org/x/sys v0.0.0-20220615213510-4f61da869c0c
go: downloading google.golang.org/protobuf v1.28.0
github.com/czerwonk/junos_exporter imports
	github.com/prometheus/common/log: cannot find module providing package github.com/prometheus/common/log

@mweinelt
Copy link

mweinelt commented Oct 7, 2022

Also fails with go install on 1.18.6.

❯ GOPATH=/tmp/test go install github.com/czerwonk/junos_exporter@latest
go: downloading github.com/czerwonk/junos_exporter v0.7.1
go: finding module for package golang.org/x/crypto/ssh
go: finding module for package gopkg.in/yaml.v2
go: finding module for package github.com/prometheus/common/log
go: finding module for package github.com/prometheus/client_golang/prometheus/promhttp
go: finding module for package github.com/prometheus/client_golang/prometheus
go: downloading golang.org/x/crypto v0.0.0-20221005025214-4161e89ecf1b
go: downloading gopkg.in/yaml.v2 v2.4.0
go: downloading github.com/prometheus/common v0.37.0
go: downloading github.com/prometheus/client_golang v1.13.0
go: found github.com/prometheus/client_golang/prometheus in github.com/prometheus/client_golang v1.13.0
go: found github.com/prometheus/client_golang/prometheus/promhttp in github.com/prometheus/client_golang v1.13.0
go: found gopkg.in/yaml.v2 in gopkg.in/yaml.v2 v2.4.0
go: found golang.org/x/crypto/ssh in golang.org/x/crypto v0.0.0-20221005025214-4161e89ecf1b
go: downloading github.com/prometheus/client_model v0.2.0
go: downloading github.com/golang/protobuf v1.5.2
go: downloading github.com/matttproud/golang_protobuf_extensions v1.0.1
go: downloading github.com/beorn7/perks v1.0.1
go: downloading github.com/cespare/xxhash/v2 v2.1.2
go: downloading github.com/prometheus/procfs v0.8.0
go: downloading google.golang.org/protobuf v1.28.1
go: downloading golang.org/x/sys v0.0.0-20220520151302-bc2c85ada10a
go: finding module for package github.com/prometheus/common/log
test/pkg/mod/github.com/czerwonk/junos_exporter@v0.7.1/junos_collector.go:22:2: module github.com/prometheus/common@latest found (v0.37.0), but does not contain package github.com/prometheus/common/log

@czerwonk
Copy link
Owner

There were 2 tags of version 0.7.x which matched the vX.X.X version scheme. These were used when requested latest. I just deleted the tags so @latest uses the master branch now.

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

No branches or pull requests

3 participants