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: genproto google apis conflict fix #1922

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

bgdnvk
Copy link

@bgdnvk bgdnvk commented Sep 13, 2024

The PR addresses rules_go issue 1877.
This is a fairly good description of what's happening: the target dependency isn't accurate.

As suggested by @fmeum I added the default behaviour to prevent this issue from happening.

@@ -102,6 +102,10 @@ DEFAULT_DIRECTIVES_BY_PATH = {
"gazelle:go_generate_proto false",
"gazelle:proto_import_prefix k8s.io/apimachinery",
],
"google.golang.org/genproto/googleapis/api/annotations": [
"gazelle:resolve go google.golang.org/genproto/googleapis/api/annotations @org_golang_google_genproto//googleapis/api/annotations",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Based on the comment you linked, it sounds like we should depend on the repo corresponding to the Go submodule, not this one. Could you confirm what's correct?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oh, so I should replace L105 with google.golang.org/genproto/googleapis/api then

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

or I guess we should do google.golang.org/genproto?

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.

2 participants