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

Build fails because of missing dependency #56

Closed
mvasl opened this issue May 25, 2022 · 5 comments
Closed

Build fails because of missing dependency #56

mvasl opened this issue May 25, 2022 · 5 comments
Labels
kind/question Categorizes issues related to questions.

Comments

@mvasl
Copy link

mvasl commented May 25, 2022

Running go mod tidy after cloning repo complains about opentelemetry package not containing required module

go: downloading go.opentelemetry.io/otel/metric v0.30.0
github.com/ckotzbauer/vulnerability-operator/internal/vuln/grype imports
	github.com/anchore/grype/grype/pkg imports
	github.com/sigstore/cosign/pkg/signature imports
	github.com/sigstore/cosign/pkg/cosign imports
	github.com/sigstore/cosign/cmd/cosign/cli/fulcio/fulcioverifier/ctl imports
	github.com/google/certificate-transparency-go imports
	go.etcd.io/etcd/v3 imports
	go.etcd.io/etcd/tests/v3/integration imports
	go.etcd.io/etcd/server/v3/embed imports
	go.opentelemetry.io/otel/semconv: module go.opentelemetry.io/otel@latest found (v1.7.0), but does not contain package go.opentelemetry.io/otel/semconv
github.com/ckotzbauer/vulnerability-operator/internal/vuln/grype imports
	github.com/anchore/grype/grype/pkg imports
	github.com/sigstore/cosign/pkg/signature imports
	github.com/sigstore/cosign/pkg/cosign imports
	github.com/sigstore/cosign/cmd/cosign/cli/fulcio/fulcioverifier/ctl imports
	github.com/google/certificate-transparency-go imports
	go.etcd.io/etcd/v3 imports
	go.etcd.io/etcd/tests/v3/integration imports
	go.etcd.io/etcd/server/v3/embed imports
	go.opentelemetry.io/otel/exporters/otlp imports
	go.opentelemetry.io/otel/sdk/metric/controller/basic imports
	go.opentelemetry.io/otel/metric/registry: module go.opentelemetry.io/otel/metric@latest found (v0.30.0), but does not contain package go.opentelemetry.io/otel/metric/registry
@ckotzbauer
Copy link
Owner

Can't reproduce this behaviour. Just did a go mod tidy and pushed the result (two lines removed), also the build is green (it also runs a go mod tidy). Which go version do you use?

@mvasl
Copy link
Author

mvasl commented May 25, 2022

I tried this on 2 separate machines on diffirent networks, one was running go 1.18.1 linux/amd64 on lubuntu 21.10, second was on macOS Monterey 12.3, go1.18.2 darwin/arm64. Same results.

Can you try again, but with all module caches cleared?

@ckotzbauer
Copy link
Owner

I will try it later, yes. Weird problem

@ckotzbauer
Copy link
Owner

It worked for me with cleaned caches on my linux/amd64 with go 1.18.2
If there would be an issue in general, the Github build would also fail, as this is always an isolated environment.

@ckotzbauer
Copy link
Owner

The problem came now up with the latest dependency-updates. I solved it by replacing the indirect etcd version 3.5.2 with 3.6.0-alpha.0. This issue was caused by a breaking change of opentelemetry.
open-telemetry/opentelemetry-go#2577 (comment)

@ckotzbauer ckotzbauer added the kind/question Categorizes issues related to questions. label May 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/question Categorizes issues related to questions.
Projects
None yet
Development

No branches or pull requests

2 participants