Skip to content

cannot find module providing package #280

@switchtrue

Description

@switchtrue

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions