Skip to content

Commit

Permalink
feat: create initial proto
Browse files Browse the repository at this point in the history
Signed-off-by: Zufar Dhiyaullhaq <[email protected]>
  • Loading branch information
zufardhiyaulhaq committed Sep 28, 2024
1 parent 81dc751 commit 01f8e9a
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 27 deletions.
10 changes: 8 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
MODULE="github.com/gopaytech/istio-upgrade-proto"

.PHONY: build.proto
build.proto:
mkdir -p model
protoc --proto_path=./proto --go_out=paths=source_relative:model ./proto/*.proto
mkdir -p ./upgrade
protoc \
--proto_path=. \
--go_out=./upgrade \
--go_opt=module=${MODULE} \
./*.proto
5 changes: 0 additions & 5 deletions model/go.mod

This file was deleted.

6 changes: 0 additions & 6 deletions model/go.sum

This file was deleted.

4 changes: 2 additions & 2 deletions proto/upgrade.proto → upgrade.proto
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
syntax = "proto3";

package model;
option go_package = "github.com/gopaytech/istio-upgrade-proto/model";
package upgrade;
option go_package = "github.com/gopaytech/istio-upgrade-proto;upgrade";

message Upgrade {
string istio_version = 1;
Expand Down
24 changes: 12 additions & 12 deletions model/upgrade.pb.go → upgrade/upgrade.pb.go

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

0 comments on commit 01f8e9a

Please sign in to comment.