Add note how to avoid compatibility issues between repos

It's pretty common to get into different errors while tidying or building `dapr/dapr` with local `dapr/components-contrib`.
Usually checking out the latest released version helps.

Signed-off-by: Tomasz Pietrek <tomasz@nats.io>
This commit is contained in:
Tomasz Pietrek 2022-10-27 14:01:13 +02:00 committed by GitHub
parent e383690286
commit b9bdd67a73
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -55,7 +55,8 @@ make lint
## Validating with Dapr core
1. Make sure you clone the `dapr/dapr` and `dapr/components-contrib` repositories side-by-side, within the same folder.
1. Replace `github.com/dapr/components-contrib` with a reference to the locally-cloned `components-contrib`:
1. In case of compatibility issues between `dapr/dapr` and `dapr/compoments-contrib` `go.mod` files during build, checkout the latest released version of `dapr/dapr`.
4. Replace `github.com/dapr/components-contrib` with a reference to the locally-cloned `components-contrib`:
```bash
go mod edit -replace github.com/dapr/components-contrib=../components-contrib
```