Skip to content

Commit

Permalink
Merge pull request #264 from krajorama/reproducable-proto-build
Browse files Browse the repository at this point in the history
Reproducable httpgrpc.pb.go build
  • Loading branch information
bboreham authored Nov 24, 2022
2 parents 8643608 + 561ca94 commit 719ed66
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 20 deletions.
43 changes: 23 additions & 20 deletions httpgrpc/httpgrpc.pb.go

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

9 changes: 9 additions & 0 deletions httpgrpc/httpgrpc.proto
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,15 @@ syntax = "proto3";

package httpgrpc;

import "github.com/gogo/protobuf/gogoproto/gogo.proto";

option (gogoproto.equal_all) = true;
option (gogoproto.gostring_all) = true;
option (gogoproto.stringer_all) = true;
option (gogoproto.goproto_stringer_all) = false;
option (gogoproto.goproto_unkeyed_all) = false;
option (gogoproto.goproto_unrecognized_all) = false;
option (gogoproto.goproto_sizecache_all) = false;
option go_package = "github.com/weaveworks/common/httpgrpc";

service HTTP {
Expand Down
6 changes: 6 additions & 0 deletions httpgrpc/tools.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
package httpgrpc

import (
// This is a workaround for go mod which fails to download gogoproto otherwise
_ "github.com/gogo/protobuf/gogoproto"
)

0 comments on commit 719ed66

Please sign in to comment.