Skip to content

Commit

Permalink
relative .pb.go generation, go_package set to package name
Browse files Browse the repository at this point in the history
Signed-off-by: AYS289 <joseph.norman@capitalone.com>
  • Loading branch information
AYS289 authored and jnorman-us committed Dec 8, 2023
1 parent bde3440 commit f1bca09
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 14 deletions.
30 changes: 18 additions & 12 deletions binding/format/protobuf/v2/pb/cloudevent.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion binding/format/protobuf/v2/pb/cloudevent.proto
Expand Up @@ -2,7 +2,7 @@ syntax = "proto3";

package pb;

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

import "google/protobuf/any.proto";
import "google/protobuf/timestamp.proto";
Expand Down
2 changes: 1 addition & 1 deletion binding/format/protobuf/v2/pb/gen.go
@@ -1,3 +1,3 @@
package pb

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

0 comments on commit f1bca09

Please sign in to comment.