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

Fix error use of internal package #28

Closed
wants to merge 1 commit into from

Conversation

noah8713
Copy link

@noah8713 noah8713 commented Aug 4, 2020

When using ratelimit with go mod, it complaints of using internal module.
Reason is use of internal modules is not permitted from outside dep projects/packages.
e.g. ./../../../pkg/mod/github.com/uber-go/ratelimit@v0.1.0/ratelimit.go:27:2:
use of internal package go.uber.org/ratelimit/internal/clock not allowed

Hence, renaming the internal folder to central to avoid this failure using go mod.

Signed-off-by: Aliasgar Ginwala aginwala@ebay.com

When using ratelimit with go mod, it complaints of using internal module.
Reason is use of internal modules is not permitted from outside dep projects/packages.
e.g. ./../../../pkg/mod/github.com/uber-go/ratelimit@v0.1.0/ratelimit.go:27:2:
use of internal package go.uber.org/ratelimit/internal/clock not allowed

Hence, renaming the internal folder to central to avoid this failure using go mod.

Signed-off-by: Aliasgar Ginwala <aginwala@ebay.com>
@CLAassistant
Copy link

CLAassistant commented Aug 4, 2020

CLA assistant check
All committers have signed the CLA.

@prashantv
Copy link
Contributor

Please import the package as go.uber.org/ratelimit, rather than uber-go/ratelimit, which should avoid this issue.

@noah8713
Copy link
Author

noah8713 commented Aug 4, 2020

Thanks for the suggestion. I cleared my go.mod entries for uber-go and used go.uber.org/ratelimit. It works fine now.

@noah8713 noah8713 closed this Aug 4, 2020
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

Successfully merging this pull request may close these issues.

None yet

3 participants