Skip to content

Commit

Permalink
Merge pull request #969 from jnorman-us/fix/proto
Browse files Browse the repository at this point in the history
relative .pb.go generation, go_package set to package name
  • Loading branch information
embano1 committed Dec 8, 2023
2 parents bde3440 + c8cbca9 commit 39fe13d
Show file tree
Hide file tree
Showing 3 changed files with 76 additions and 68 deletions.
138 changes: 73 additions & 65 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.

4 changes: 2 additions & 2 deletions binding/format/protobuf/v2/pb/cloudevent.proto
@@ -1,8 +1,8 @@
syntax = "proto3";

package pb;
package io.cloudevents.v1;

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 39fe13d

Please sign in to comment.