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

ambiguous import #866

Closed
z774379121 opened this issue Oct 25, 2022 · 2 comments
Closed

ambiguous import #866

z774379121 opened this issue Oct 25, 2022 · 2 comments

Comments

@z774379121
Copy link

z774379121 commented Oct 25, 2022

github.com/apache/pulsar-client-go/pulsar imports github.com/apache/pulsar-client-go/pulsar/internal/auth imports github.com/apache/pulsar-client-go/oauth2 tested by github.com/apache/pulsar-client-go/oauth2.test imports github.com/apache/pulsar-client-go/oauth2/clock/testing loaded from github.com/apache/pulsar-client-go@v0.9.0, but go 1.16 would fail to locate it: ambiguous import: found package github.com/apache/pulsar-client-go/oauth2/clock/testing in multiple modules: github.com/apache/pulsar-client-go v0.9.0 (C:\Users\user\go\pkg\mod\github.com\apache\pulsar-client-go@v0.9.0\oauth2\clock\testing) github.com/apache/pulsar-client-go/oauth2 v0.0.0-20211108044248-fe3b7c4e445b (C:\Users\user\go\pkg\mod\github.com\apache\pulsar-client-go\oauth2@v0.0.0-20211108044248-fe3b7c4e445b\clock\testing)

apache/pulsar-client-go#802
pulsar-client-go removed the sub-module of oauth2, but github.com/apache/pulsar-client-go/oauth2 still in go.mod under pulsarctl.

@nodece
Copy link
Contributor

nodece commented Oct 26, 2022

Could you share your command?

@z774379121
Copy link
Author

Could you share your command?

Fixed after clean go mod cache.

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

2 participants