-
-
Notifications
You must be signed in to change notification settings - Fork 681
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
Override dependency not working for google.golang.org/genproto? #2420
Comments
When using Gazelle and In this case, I'd suggest adding the attribute |
Thanks very much for the pointer @jayconrod, I managed to run successfully with override by adding However, I couldn't get the This leaves another question, though - the above directive implies I cannot rely on the |
Gazelle runs in one repository at a time. It's also configured one directory at a time, though configuration is inherited in subdirectories. So The specific effects of this are that 1) If you're using It's difficult to update |
About checking in generated code: I think the test for this is whether any non-Bazel project depend on your project. Only Bazel projects will be able to generate code at build time, so if a non-Bazel project depends on you, you must check in generated code. |
Thanks again for the detailed response! I could see how the So I suppose this means I will need to know exactly which package depends on the different version of |
Couple things that might help:
You could also try downgrading to an older version of a module with |
The As a separate note, I start to see many warnings such as Again, appreciate your prompt and detailed support in this! |
What version of rules_go are you using?
v0.22.2
What version of gazelle are you using?
v0.20.0
What version of Bazel are you using?
v2.2.0
Does this issue reproduce with the latest releases of all the above?
Yes
What operating system and processor architecture are you using?
macOS Catalina v10.15.4, x86_64
What did you do?
I made a full repro repo herer at rytswd/simple-bazel, in branch issue/google-cloud-go-1898.
WORKSPACE
(full copy with more comments available in the repo):What did you expect to see?
What did you see instead?
The full log is pretty long, you can see the copy here.
The error indicates that the version of
google.golang.org/genproto
used in googleapis/google-cloud-go for Spanner is newer compared to the one used inrules_go
. I tried the override path, but that didn't seem to solve the situation. I may be doing the override incorrectly, so tried several cases of adjusting the method call orders, but couldn't make it to work.Would anyone be able to check if my override setup above is done correctly? And if so, is it possible that the override may not be working as expected for
google.golang.org/genproto
?Other details
I have originally raised this in googleapis/google-cloud-go repo with googleapis/google-cloud-go#1898, thinking there may be the need of a patch here similar to #2376 and #2378.
The text was updated successfully, but these errors were encountered: