Skip to content

Commit

Permalink
Fix protoc-gen-go warning about go_package value
Browse files Browse the repository at this point in the history
protoc-gen-go was throwing a warning:
> Generating protos/workflow/workflow.pb.go...
> 2020/10/19 16:57:11 WARNING: Deprecated use of 'go_package' option without a full import path in "workflow/workflow.proto", please specify:
>	option go_package = "workflow";
> A future release of protoc-gen-go will require the import path be specified.
> See https://developers.google.com/protocol-buffers/docs/reference/go-generated#package for more information.

Signed-off-by: Manuel Mendez <manny@packet.com>
  • Loading branch information
mmlb committed Oct 26, 2020
1 parent 1173f4d commit 9bc6003
Show file tree
Hide file tree
Showing 8 changed files with 21 additions and 12 deletions.
6 changes: 4 additions & 2 deletions protos/hardware/hardware.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 protos/hardware/hardware.proto
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
syntax = "proto3";

option go_package = "hardware";
option go_package = "github.com/tinkerbell/tink/protos/hardware";

package github.com.tinkerbell.tink.protos.hardware;

Expand Down
7 changes: 5 additions & 2 deletions protos/packet/packet.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 protos/packet/packet.proto
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
syntax = "proto3";

option go_package = "packet";
option go_package = "github.com/tinkerbell/tink/protos/packet";

package github.com.tinkerbell.tink.protos.packet;

Expand Down
6 changes: 4 additions & 2 deletions protos/template/template.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 protos/template/template.proto
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
syntax = "proto3";

option go_package = "template";
option go_package = "github.com/tinkerbell/tink/protos/template";

package github.com.tinkerbell.tink.protos.template;

Expand Down
6 changes: 4 additions & 2 deletions protos/workflow/workflow.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 protos/workflow/workflow.proto
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
syntax = "proto3";

option go_package = "workflow";
option go_package = "github.com/tinkerbell/tink/protos/workflow";

package github.com.tinkerbell.tink.protos.workflow;

Expand Down

0 comments on commit 9bc6003

Please sign in to comment.