0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

ArgoCDをコンパイルするときに発生するエラー: module go.opentelemetry.io/otel@latest found (v1.2.0), but does not contain package go.opentelemetry.io/otel/api/metric を解消する方法

Posted at

概要

ArgoCDが依存しているgo-redisが依存しているパッケージのgo.opentelemetry.ioの指定が食い違っていて表題のエラーが発生することがある。これを解消する方法を説明する。

エラー全文

github.com/focas/focas/experimental/argocd-go imports
	github.com/argoproj/argo-cd/v2/pkg/client/clientset/versioned imports
	github.com/argoproj/argo-cd/v2/pkg/client/clientset/versioned/typed/application/v1alpha1 imports
	github.com/argoproj/argo-cd/v2/pkg/apis/application/v1alpha1 imports
	github.com/argoproj/argo-cd/v2/util/helm imports
	github.com/argoproj/argo-cd/v2/util/cache imports
	github.com/go-redis/redis/v8 imports
	github.com/go-redis/redis/v8/internal imports
	go.opentelemetry.io/otel/api/metric: module go.opentelemetry.io/otel@latest found (v1.2.0), but does not contain package go.opentelemetry.io/otel/api/metric

解消方法

go-redisの特定のコミットを取得する。

go get github.com/go-redis/redis/v8@1f32092a3b04c21b6e8e51e2c94c03448d14a2c9

参照

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?