add state. go generate autogenpb
This commit is contained in:
parent
676cb338a4
commit
366f4680ac
4
Makefile
4
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
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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`
|
||||
|
|
Loading…
Reference in New Issue