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

Broken dependency tree when trying to use goflow for the first time #87

Open
manitgupta opened this issue Nov 2, 2023 · 2 comments
Open

Comments

@manitgupta
Copy link

Hey All,

The imported the two dependencies for golang as follows -

import (
	"fmt"
	goflow "github.com/s8sg/goflow/v1"
	flow "github.com/s8sg/goflow/flow/v1"
)

and then go mod tidy, but I get the following errors -

❯ go mod tidy
go: finding module for package github.com/s8sg/goflow/v1
go: finding module for package github.com/s8sg/goflow/flow/v1
go: downloading github.com/s8sg/goflow v0.1.4
go: found github.com/s8sg/goflow/flow/v1 in github.com/s8sg/goflow v0.1.4
go: found github.com/s8sg/goflow/v1 in github.com/s8sg/goflow v0.1.4
go: downloading github.com/gin-gonic/gin v1.9.0
go: downloading github.com/mattn/go-isatty v0.0.18
go: downloading github.com/go-playground/validator/v10 v10.12.0
go: downloading github.com/bytedance/sonic v1.8.8
go: downloading github.com/pelletier/go-toml/v2 v2.0.7
go: downloading github.com/leodido/go-urn v1.2.3
go: finding module for package go.opentelemetry.io/otel/api/metric
go: finding module for package go.opentelemetry.io/otel/label
go: finding module for package go.opentelemetry.io/otel/api/trace
go: finding module for package go.opentelemetry.io/otel/api/global
go: github.com/GoogleCloudPlatform/spanner-migration-tool/workflows imports
	github.com/s8sg/goflow/v1 imports
	github.com/s8sg/goflow/runtime imports
	github.com/adjust/rmq/v4 imports
	github.com/go-redis/redis/v8 imports
	go.opentelemetry.io/otel/api/trace: module go.opentelemetry.io/otel@latest found (v1.19.0), but does not contain package go.opentelemetry.io/otel/api/trace
go: github.com/GoogleCloudPlatform/spanner-migration-tool/workflows imports
	github.com/s8sg/goflow/v1 imports
	github.com/s8sg/goflow/runtime imports
	github.com/adjust/rmq/v4 imports
	github.com/go-redis/redis/v8 imports
	go.opentelemetry.io/otel/label: module go.opentelemetry.io/otel@latest found (v1.19.0), but does not contain package go.opentelemetry.io/otel/label
go: github.com/GoogleCloudPlatform/spanner-migration-tool/workflows imports
	github.com/s8sg/goflow/v1 imports
	github.com/s8sg/goflow/runtime imports
	github.com/gin-gonic/gin imports
	github.com/gin-gonic/gin/binding imports
	github.com/ugorji/go/codec: ambiguous import: found package github.com/ugorji/go/codec in multiple modules:
	github.com/ugorji/go v1.1.4 (/Users/manitgupta/go/pkg/mod/github.com/ugorji/go@v1.1.4/codec)
	github.com/ugorji/go/codec v1.2.11 (/Users/manitgupta/go/pkg/mod/github.com/ugorji/go/codec@v1.2.11)
go: github.com/GoogleCloudPlatform/spanner-migration-tool/workflows imports
	github.com/s8sg/goflow/v1 imports
	github.com/s8sg/goflow/runtime imports
	github.com/adjust/rmq/v4 imports
	github.com/go-redis/redis/v8 imports
	github.com/go-redis/redis/v8/internal imports
	go.opentelemetry.io/otel/api/global: module go.opentelemetry.io/otel@latest found (v1.19.0), but does not contain package go.opentelemetry.io/otel/api/global
go: github.com/GoogleCloudPlatform/spanner-migration-tool/workflows imports
	github.com/s8sg/goflow/v1 imports
	github.com/s8sg/goflow/runtime imports
	github.com/adjust/rmq/v4 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.19.0), but does not contain package go.opentelemetry.io/otel/api/metric

Looks like once of the dependencies of goflow is broken and importing a stale path of opentelemetry otel package which has been moved. Any suggestions on how to fix this?

@khs1001
Copy link

khs1001 commented Dec 28, 2023

How to solve it

@FSSlc
Copy link

FSSlc commented Aug 9, 2024

In my case, some package need github.com/redis/go-redis/v9 , then I changed it to need github.com/go-redis/redis/v8, then solve this problem.

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