goflow icon indicating copy to clipboard operation
goflow copied to clipboard

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

Open manitgupta opened this issue 8 months ago • 1 comments

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/[email protected]/codec)
	github.com/ugorji/go/codec v1.2.11 (/Users/manitgupta/go/pkg/mod/github.com/ugorji/go/[email protected])
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?

manitgupta avatar Nov 02 '23 06:11 manitgupta