protobuf version checking works

This commit is contained in:
Jeff Carr 2025-01-19 03:19:06 -06:00
parent b0595d6a1d
commit 90e20c4ff0
2 changed files with 3 additions and 3 deletions

View File

@ -65,7 +65,7 @@ func (repo *Repo) setLastTag() {
// log.Info("getLastTagVersion()", result.Stdout)
if len(result.Stdout) != 1 {
log.Log(WARN, "git LastTag() error:", result.Stdout)
// log.Log(WARN, "no gitpb.LastTag() repo is broken. ignore this.", repo.GetGoPath())
repo.LastTag = ""
return
}
@ -76,7 +76,7 @@ func (repo *Repo) setLastTag() {
result = repo.RunQuiet(cmd)
if len(result.Stdout) != 1 {
log.Log(WARN, "git LastTag() error:", result.Stdout)
log.Log(WARN, "git LastTag() error:", result.Stdout, "hash =", hash)
repo.LastTag = ""
return
}

View File

@ -40,7 +40,7 @@ message Repo { // `autogenpb:marshal` `autogenpb:nomutex`
message Repos { // `autogenpb:marshal` `autogenpb:sort` `autogenpb:nomutex`
string uuid = 1; // `autogenpb:uuid:8daaeba1-fb1f-4762-ae6e-95a55d352673`
string version = 2; // `autogenpb:version:2`
string version = 2; // `autogenpb:version:v3`
repeated Repo repos = 3; // `autogenpb:append` // generate AppendUnique() function for this
}