From 8dea9ab921fdca434c6a47908d20488621eb820f Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Sun, 3 Nov 2024 00:41:39 -0500 Subject: name correctly --- Makefile | 8 ++++---- repo.proto | 29 ----------------------------- repository.proto | 29 +++++++++++++++++++++++++++++ 3 files changed, 33 insertions(+), 33 deletions(-) delete mode 100644 repo.proto create mode 100644 repository.proto diff --git a/Makefile b/Makefile index 41826d9..d3630e7 100644 --- a/Makefile +++ b/Makefile @@ -5,7 +5,7 @@ # go install -all: repo.pb.go +all: repository.pb.go make -C example vet: lint @@ -29,10 +29,10 @@ clean: -rm -f go.* make -C example clean -repo.pb.go: repo.proto +repository.pb.go: repository.proto # protoc --go_out=. droplet.proto # This is switched over to use the new protoc-gen-go from google.golang.org/protobuf/cmd/protoc-gen-go # the debian one (2024/10/21) seems to be the older/original one from github.com/golang/protobuf/protoc-gen-go cd ~/go/src && protoc --go_out=. --proto_path=go.wit.com/lib/protobuf/gitpb \ - --go_opt=Mrepo.proto=go.wit.com/lib/protobuf/gitpb \ - repo.proto + --go_opt=Mrepository.proto=go.wit.com/lib/protobuf/gitpb \ + repository.proto diff --git a/repo.proto b/repo.proto deleted file mode 100644 index c415075..0000000 --- a/repo.proto +++ /dev/null @@ -1,29 +0,0 @@ -syntax = "proto3"; - -package gitpb; - -// import "google/protobuf/duration.proto"; // Import the well-known type for Timestamp -import "google/protobuf/timestamp.proto"; // Import the well-known type for Timestamp - -message Commit { - string id = 1; - string message = 2; - string author = 3; - google.protobuf.Timestamp timestamp = 4; // the last time we heard anything from this droplet -} - -message Tag { - string name = 1; - Commit commit = 2; -} - -message Branch { - string name = 1; - Commit head = 2; -} - -message Repository { - string name = 1; - repeated Branch branches = 2; - repeated Tag tags = 3; -} diff --git a/repository.proto b/repository.proto new file mode 100644 index 0000000..c415075 --- /dev/null +++ b/repository.proto @@ -0,0 +1,29 @@ +syntax = "proto3"; + +package gitpb; + +// import "google/protobuf/duration.proto"; // Import the well-known type for Timestamp +import "google/protobuf/timestamp.proto"; // Import the well-known type for Timestamp + +message Commit { + string id = 1; + string message = 2; + string author = 3; + google.protobuf.Timestamp timestamp = 4; // the last time we heard anything from this droplet +} + +message Tag { + string name = 1; + Commit commit = 2; +} + +message Branch { + string name = 1; + Commit head = 2; +} + +message Repository { + string name = 1; + repeated Branch branches = 2; + repeated Tag tags = 3; +} -- cgit v1.2.3