From 366f4680ac1db049599e9ed6e319aea7ae146bc8 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Tue, 7 Jan 2025 18:06:54 -0600 Subject: [PATCH] add state. go generate autogenpb --- Makefile | 4 ++++ autogen.go | 5 +++++ repo.proto | 3 ++- 3 files changed, 11 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 5ea078f..baf8a84 100644 --- a/Makefile +++ b/Makefile @@ -7,6 +7,10 @@ all: goimports gitTag.pb.go goDep.pb.go repo.pb.go vet +generate: clean + go-mod-clean + go generate + vet: @GO111MODULE=off go vet @echo this go library package builds okay diff --git a/autogen.go b/autogen.go index 8d78780..977b0d0 100644 --- a/autogen.go +++ b/autogen.go @@ -1,5 +1,10 @@ package gitpb +// go.wit.com/apps/autogenpb auto generates Sort() and Marshal() for protobuf files +//go:generate autogenpb --proto gitTag.proto +//go:generate autogenpb --proto goDep.proto +//go:generate autogenpb --proto repo.proto + import ( "errors" "fmt" diff --git a/repo.proto b/repo.proto index 9097561..fab47cb 100644 --- a/repo.proto +++ b/repo.proto @@ -28,11 +28,12 @@ message Repo { // `autogenpb:marshal` string targetVersion = 15; // useful during the package release process bool readOnly = 16; // tracks access to 'git push' string desc = 17; // what is this repo? - string stateChange = 18; // reason for state change + string state = 18; // status or state. useful for building tooling string masterVersion = 19; // just store this for now string develVersion = 20; // string userVersion = 21; // repeated string dirtyList = 22; // store the list from git status --porcelain + string stateChange = 23; // used for debugging tool logic } message Repos { // `autogenpb:marshal`