-
Notifications
You must be signed in to change notification settings - Fork 385
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
Support Golang Workspaces in Gazelle #1720
Comments
This is supposedly already supported: |
Not sure if this is the issue you're reporting, but I'll share what I just got working. Bazel Version 7.0.0rc1 (if that matters).
then
This is the only part that feels suboptimal:
|
I've been exploring and prototyping go.work via bzlmod over here. We are using this approach as a prototype at work, and it's working without issue. Example in a tiny OSS go.work repo A nice part of this, is no One known caveat: all go dependencies in the workspace are visible to all go modules, even if a given module does not include it in its go.mod file. If users diligently run On a positive note, their IDE should also tell them the problem exists. But CI would pass, and it really shouldn't. @fmeum gave some suggestions, and I hope to explore them shortly.
@sluongng also gave some suggestions with regards to avoiding relying on |
I explored this, and although possible it seems a little funky, and I would love input:
I've started this, but haven't completed this exploration yet. |
Could you send me the invitation link of this slack? I can't find a usable one on the internet. I'm currently using Bazel in my Go project and I may need some help to solve the problems. |
Like mentioned in this issue in the rules_go repository, here is the issue in the gazelle repository.
My question is when Gazelle will support Golang workspaces or more precisely when it will be possible to use
go.work
files with gazelle.The text was updated successfully, but these errors were encountered: