Skip to content

Commit

Permalink
oauth2: add note to readme about possible module error
Browse files Browse the repository at this point in the history
Signed-off-by: Paul Gier <paul.gier@datastax.com>
  • Loading branch information
pgier committed Jul 13, 2022
1 parent 7900c57 commit 86600fc
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -166,3 +166,20 @@ You can self-register at https://apache-pulsar.herokuapp.com/
## License

Licensed under the Apache License, Version 2.0: http://www.apache.org/licenses/LICENSE-2.0

## Troubleshooting

### Go module 'ambiguous import' error

If you've upgraded from a previous version of this library, you may run into an 'ambigous import' error when building.

```
github.com/apache/pulsar-client-go/oauth2: ambiguous import: found package github.com/apache/pulsar-client-go/oauth2 in multiple modules
```

The fix for this is to make sure you don't have any references in your `go.mod` file to the old oauth2 module path. So remove any lines
similar to the following, and then run `go mod tidy`.

```
github.com/apache/pulsar-client-go/oauth2 v0.0.0-20220630195735-e95cf0633348 // indirect
```

0 comments on commit 86600fc

Please sign in to comment.