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

cannot find module providing package #280

Open
switchtrue opened this issue Apr 23, 2021 · 0 comments
Open

cannot find module providing package #280

switchtrue opened this issue Apr 23, 2021 · 0 comments

Comments

@switchtrue
Copy link

I'm trying to do a local install using the recommendation from the readme of go get github.com/Stackdriver/stackdriver-prometheus-sidecar/.... However, when doing this I am getting a few modules that can't be found:

  • go.opencensus.io/exporter/prometheus
  • github.com/Azure/azure-sdk-for-go/arm/compute
  • github.com/Azure/azure-sdk-for-go/arm/network

Full output:

github.com/Stackdriver/stackdriver-prometheus-sidecar/cmd/stackdriver-prometheus-sidecar imports
	go.opencensus.io/exporter/prometheus: cannot find module providing package go.opencensus.io/exporter/prometheus
github.com/Stackdriver/stackdriver-prometheus-sidecar/cmd/stackdriver-prometheus-sidecar imports
	github.com/prometheus/prometheus/config imports
	github.com/prometheus/prometheus/discovery/config imports
	github.com/prometheus/prometheus/discovery/azure imports
	github.com/Azure/azure-sdk-for-go/arm/compute: cannot find module providing package github.com/Azure/azure-sdk-for-go/arm/compute
github.com/Stackdriver/stackdriver-prometheus-sidecar/cmd/stackdriver-prometheus-sidecar imports
	github.com/prometheus/prometheus/config imports
	github.com/prometheus/prometheus/discovery/config imports
	github.com/prometheus/prometheus/discovery/azure imports
	github.com/Azure/azure-sdk-for-go/arm/network: cannot find module providing package github.com/Azure/azure-sdk-for-go/arm/network
[mleonard@dcprometheus ~]$ GO111MODULE=on CGO_ENABLED=0 go get github.com/Stackdriver/stackdriver-prometheus-sidecar/...@latest
github.com/Stackdriver/stackdriver-prometheus-sidecar/cmd/stackdriver-prometheus-sidecar imports
	go.opencensus.io/exporter/prometheus: cannot find module providing package go.opencensus.io/exporter/prometheus
github.com/Stackdriver/stackdriver-prometheus-sidecar/cmd/stackdriver-prometheus-sidecar imports
	github.com/prometheus/prometheus/config imports
	github.com/prometheus/prometheus/discovery/config imports
	github.com/prometheus/prometheus/discovery/azure imports
	github.com/Azure/azure-sdk-for-go/arm/compute: cannot find module providing package github.com/Azure/azure-sdk-for-go/arm/compute
github.com/Stackdriver/stackdriver-prometheus-sidecar/cmd/stackdriver-prometheus-sidecar imports
	github.com/prometheus/prometheus/config imports
	github.com/prometheus/prometheus/discovery/config imports
	github.com/prometheus/prometheus/discovery/azure imports
	github.com/Azure/azure-sdk-for-go/arm/network: cannot find module providing package github.com/Azure/azure-sdk-for-go/arm/network

go version:

$ go version
go version go1.16.3 linux/amd64

Any ideas on how to resolve this and do a successful local install?

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

1 participant