intellij-buf
intellij-buf copied to clipboard
buf.lock dependencies not resolving
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
and buf 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.
syntax = "proto3";
package billing;
import "google/type/date.proto";
import "google/protobuf/timestamp.proto";
message Test
google.type.Date date = 1;
google.protobuf.Timestamp timestamp = 2;
}
buf.yaml
version: v1
build:
excludes:
- bazel-bin
- bazel-go.nozzle.io
- bazel-out
- bazel-testlogs
deps:
- buf.build/googleapis/googleapis
lint:
use:
- DEFAULT
breaking:
use:
- FILE
buf.gen.yaml
version: v1
managed:
enabled: true
go_package_prefix:
default: go.nozzle.io
except:
- buf.build/googleapis/googleapis
plugins:
- name: go
out: .
opt: paths=source_relative
- name: go-grpc
out: .
opt:
- paths=source_relative
- require_unimplemented_servers=false
- name: go-json
out: .
opt:
- paths=source_relative
- enums_as_ints=false
- emit_defaults=false
- orig_name=false
- allow_unknown=false
buf.lock
version: v1
deps:
- remote: buf.build
owner: googleapis
repository: googleapis
commit: 80720a488c9a414bb8d4a9f811084989