Skip to content

Commit

Permalink
Fix 'update-otel' make target fails with 'go-chi' dependency issue
Browse files Browse the repository at this point in the history
opentelemetry-collector-contrib has a dependency on `gopkg.in/DataDog/dd-trace-go.v1 v1.37.0`.
`gopkg.in/DataDog/dd-trace-go.v1 v1.37.0` has a dependency on `github.com/go-chi/chi v4.0.0-rc1`.
However, the tag has been removed from the repository for `v4.0.0-rc1`.

This means then that the `update-otel` target fails as follows:

go: gopkg.in/DataDog/dd-trace-go.v1@v1.37.0 requires
	github.com/go-chi/chi/v4@v4.0.0-rc1: reading github.com/go-chi/chi/go.mod at
revision v4.0.0-rc1: unknown revision v4.0.0-rc1

This PR replaces the chi dependency with `v4.0.0` until the issue is resolved with
the `dd-trace-go` module.

Signed-off-by: Martin Hickey <martin.hickey@ie.ibm.com>
  • Loading branch information
hickeyma committed Mar 29, 2022
1 parent f2a4c61 commit dbbf5e5
Show file tree
Hide file tree
Showing 6 changed files with 474 additions and 6 deletions.
4 changes: 4 additions & 0 deletions cmd/configschema/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -787,6 +787,10 @@ replace github.com/open-telemetry/opentelemetry-collector-contrib/receiver/zooke
// see https://github.com/google/gnostic/issues/262
replace github.com/googleapis/gnostic v0.5.6 => github.com/googleapis/gnostic v0.5.5

// see https://github.com/go-chi/chi/issues/713
// see https://github.com/DataDog/dd-trace-go/issues/1220
replace github.com/go-chi/chi/v4 => github.com/go-chi/chi v4.0.0+incompatible

// see https://github.com/open-telemetry/opentelemetry-collector-contrib/issues/4433
exclude github.com/StackExchange/wmi v1.2.0

Expand Down
Loading

0 comments on commit dbbf5e5

Please sign in to comment.