publish every *.pb.go file

This commit is contained in:
Jeff Carr 2024-11-29 23:32:19 -06:00
parent 3e45924aa2
commit 1af05cc0ef
2 changed files with 3 additions and 2 deletions

View File

@ -14,7 +14,7 @@ import (
func (repo *Repo) GetLastTag() string {
cmd := []string{"git", "rev-list", "--tags", "--max-count=1"}
result := repo.RunQuiet(cmd)
log.Info("getLastTagVersion()", result.Stdout)
// log.Info("getLastTagVersion()", result.Stdout)
if len(result.Stdout) != 1 {
log.Log(GITPBWARN, "git LastTag() error:", result.Stdout)

View File

@ -50,7 +50,8 @@ func (repo *Repo) IsProtobuf() (bool, []string, error) {
var allc []string
for _, testf := range fullc {
if strings.HasSuffix(testf, ".pb.go") {
allc = append(allc, testf)
basef := filepath.Base(testf)
allc = append(allc, basef) // no, not the 3.5" floppy disks
}
}
return anyfound, allc, err