summaryrefslogtreecommitdiff
path: root/wit.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-10-09 06:23:08 -0500
committerJeff Carr <[email protected]>2025-10-09 06:44:11 -0500
commitbab0ecf924c0f4ddbac5b86ba226a742828c8b40 (patch)
treee54fef46d48187a4bdae71469caf651320b5fc62 /wit.go
parente8ee27ea75b4df4f91d00c6c2741bd446694e464 (diff)
fixes to the .proto filev0.0.6
Diffstat (limited to 'wit.go')
-rw-r--r--wit.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/wit.go b/wit.go
index cbc6377..222731b 100644
--- a/wit.go
+++ b/wit.go
@@ -21,7 +21,7 @@ func InitWitMirrors(m *zoopb.Machine) error {
// adds the package if the name isn't there
// if it's newer, remove the old package and use the new one
func AddIfNewer(all *zoopb.Packages, p *zoopb.Package) {
- check := all.FindByName(p.Name)
+ check := all.FindByPackage(p.Package)
if check == nil {
all.Append(p)
return
@@ -62,7 +62,7 @@ func fillPB(p *zoopb.Package, namemap map[string]string) error {
if varname == "Git-Tag-Date" {
varname = "GitTagDate"
}
- if ok, err := setString(p, varname, s); ok {
+ if ok, err := SetString(p, varname, s); ok {
continue
} else {
log.Printf("%s: var=%s val=%s err=%v\n", p.Package, varname, s, err)
@@ -167,9 +167,9 @@ func parsePackageInfo(lines string) (*zoopb.Package, map[string]string) {
}
p := zoopb.Package{
- Name: name,
+ Package: name,
Version: version,
- PkgName: filename,
+ Filename: filename,
Namespace: gopath,
}