Buf v0.18.1 is released - fix issue with linking errors for custom options with message types

11 views
Skip to first unread message

bufbuild-announce

unread,
Jun 25, 2020, 1:01:30 PM6/25/20
to bufbuild-announce
We have released Buf v0.18.1.

This is a bug fix release. There was an issue where references to custom options in a separate file of a message type were not being reported. That's a lot of words, so as an example:

// a.proto
syntax = "proto2";

package a;

import "google/protobuf/descriptor.proto";

extend google.protobuf.FieldOptions {
  optional Foo foo = 50001;
}

message Foo {
  optional string bar = 1;
}

Then, assume b.proto imports a.proto:

// b.proto
syntax = "proto3";

package a;

import "a.proto";

message Baz {
  // the actual name is (a.foo).bar
  // previously, this would have resulted in no error
  // with 0.18.1, this properly results in a build error
  string bat = 1 [(a.foo).ban = "bam"];
}

The brew tap has been updated.
Reply all
Reply to author
Forward
0 new messages