-
Notifications
You must be signed in to change notification settings - Fork 2
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
buf.lock dependencies not resolving #38
Comments
@derekperkins what do you see in the "External Libraries" panel in Project View? If you don't see then we'll need a bit more details about your machine setup. Which version of OS are you using and have you override any of the Buf related configs like |
It's actually resolving now, I'm not sure what changed. Maybe it just took a while to propagate? It was probably 30 minutes yesterday that it was erroring. As I continue to iterate today, I'm seeing a similar issue again today where |
@derekperkins what's your OS? I wonder if there is an issue when Goland is not getting file system updates. Next time could you please try to invoke |
The resolution is based of location of |
We have a top level file layout
/proto/buf.yaml version: v1
name: buf.build/nozzle/nozzle
deps:
- buf.build/googleapis/googleapis
lint:
use:
- DEFAULT
- COMMENT_ENUM
- COMMENT_MESSAGE
- COMMENT_RPC
- COMMENT_SERVICE
- UNARY_RPC
- PACKAGE_NO_IMPORT_CYCLE
breaking:
use:
- FILE |
This is still an issue. The plugin tries to autocomplete from the root of our repo rather than the root of the buf module, which is /proto |
Is this still an issue with the latest version of the plugin (0.4.1)? We've made several enhancements to how module dependencies are resolved. I'd also suggest looking at upgrading to the latest version of buf and the v2 configuration files: https://buf.build/docs/migration-guides/migrate-v2-config-files. Those are now fully supported by the plugin and allow you to define a |
I'm using Goland (2022.2) with buf 1.7.0 and non-well-known-types are not resolving and show an error, even though . Unlike #37, well known types work just fine. Running
buf build
andbuf generate
work as expected with no errors, and the generated code uses the date package. This is my first time importing an external dependency, so I am not sure if this worked before or not.conversation here: https://bufbuild.slack.com/archives/CRZ680FUH/p1661382658841319
Here's a barebones example that I believe should reproduce the issue, though I haven't tested it locally.
buf.yaml
buf.gen.yaml
buf.lock
The text was updated successfully, but these errors were encountered: