Skip to content

Commit f1bca09

Browse files
AYS289winecraft-dev
authored andcommitted
relative .pb.go generation, go_package set to package name
Signed-off-by: AYS289 <joseph.norman@capitalone.com>
1 parent bde3440 commit f1bca09

File tree

3 files changed

+20
-14
lines changed

3 files changed

+20
-14
lines changed

binding/format/protobuf/v2/pb/cloudevent.pb.go

Lines changed: 18 additions & 12 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

binding/format/protobuf/v2/pb/cloudevent.proto

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ syntax = "proto3";
22

33
package pb;
44

5-
option go_package = "/;pb";
5+
option go_package = "github.com/cloudevents/sdk-go/binding/format/protobuf/v2/pb";
66

77
import "google/protobuf/any.proto";
88
import "google/protobuf/timestamp.proto";
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
package pb
22

3-
//go:generate protoc --go_out=. cloudevent.proto
3+
//go:generate protoc --go_out=. --go_opt=paths=source_relative cloudevent.proto

0 commit comments

Comments
 (0)