From 9129cfe885281b0f2740d7f93dbb3b4ee5134d59 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Wed, 27 Nov 2024 21:43:40 -0600 Subject: rename to plural form Signed-off-by: Jeff Carr --- Makefile | 10 +++++----- repo.proto | 29 ----------------------------- repos.proto | 29 +++++++++++++++++++++++++++++ 3 files changed, 34 insertions(+), 34 deletions(-) delete mode 100644 repo.proto create mode 100644 repos.proto diff --git a/Makefile b/Makefile index 905df97..c9d0d88 100644 --- a/Makefile +++ b/Makefile @@ -5,7 +5,7 @@ # go install -all: refs.pb.go godep.pb.go repo.pb.go vet +all: refs.pb.go godep.pb.go repos.pb.go vet make -C scanGoSrc/ vet: lint @@ -26,7 +26,7 @@ redomod: clean: rm -f *.pb.go -rm -f go.* - make -C example clean + make -C scanGoSrc clean refs.pb.go: refs.proto cd ~/go/src && protoc --go_out=. --proto_path=go.wit.com/lib/protobuf/gitpb \ @@ -38,9 +38,9 @@ godep.pb.go: godep.proto --go_opt=Mgodep.proto=go.wit.com/lib/protobuf/gitpb \ godep.proto -repo.pb.go: repo.proto +repos.pb.go: repos.proto cd ~/go/src && protoc --go_out=. --proto_path=go.wit.com/lib/protobuf/gitpb \ --go_opt=Mrefs.proto=go.wit.com/lib/protobuf/gitpb \ --go_opt=Mgodep.proto=go.wit.com/lib/protobuf/gitpb \ - --go_opt=Mrepo.proto=go.wit.com/lib/protobuf/gitpb \ - repo.proto + --go_opt=Mrepos.proto=go.wit.com/lib/protobuf/gitpb \ + repos.proto diff --git a/repo.proto b/repo.proto deleted file mode 100644 index 029bad2..0000000 --- a/repo.proto +++ /dev/null @@ -1,29 +0,0 @@ -syntax = "proto3"; - -package gitpb; - -// stores information about git repos -// If the project is in golang, also gets the go language dependacies - -import "refs.proto"; -import "godep.proto"; -import "google/protobuf/timestamp.proto"; // Import the well-known type for Timestamp - -message Repo { - string fullPath = 1; // the actual path to the .git directory: '/home/devel/golang.org/x/tools' - repeated Ref refs = 2; - google.protobuf.Timestamp lastPull = 3; // last time a git pull was done - - // things specific to golang projects - string goPath = 4; // the logical path as used by golang: 'go.wit.com/apps/helloworld' - repeated GoDep GoDeps = 6; - google.protobuf.Timestamp lastGoDep = 7; // last time go.sum was processed - bool goLibrary = 8; // if this is a golang library - bool goPrimitive = 9; // if this is a golang primitive -} - -message Repos { - string uuid = 1; // I guess why not just have this on each file - string version = 2; // maybe can be used for protobuf schema change violations - repeated Repo repos = 3; -} diff --git a/repos.proto b/repos.proto new file mode 100644 index 0000000..029bad2 --- /dev/null +++ b/repos.proto @@ -0,0 +1,29 @@ +syntax = "proto3"; + +package gitpb; + +// stores information about git repos +// If the project is in golang, also gets the go language dependacies + +import "refs.proto"; +import "godep.proto"; +import "google/protobuf/timestamp.proto"; // Import the well-known type for Timestamp + +message Repo { + string fullPath = 1; // the actual path to the .git directory: '/home/devel/golang.org/x/tools' + repeated Ref refs = 2; + google.protobuf.Timestamp lastPull = 3; // last time a git pull was done + + // things specific to golang projects + string goPath = 4; // the logical path as used by golang: 'go.wit.com/apps/helloworld' + repeated GoDep GoDeps = 6; + google.protobuf.Timestamp lastGoDep = 7; // last time go.sum was processed + bool goLibrary = 8; // if this is a golang library + bool goPrimitive = 9; // if this is a golang primitive +} + +message Repos { + string uuid = 1; // I guess why not just have this on each file + string version = 2; // maybe can be used for protobuf schema change violations + repeated Repo repos = 3; +} -- cgit v1.2.3