summaryrefslogtreecommitdiff
path: root/wit.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-10-09 20:01:03 -0500
committerJeff Carr <[email protected]>2025-10-09 20:06:41 -0500
commit32d097405950217bf0597e4ec23d22160f0a2b22 (patch)
tree9d44a953e68746fa7b76b8b73a875847ba8e9621 /wit.go
parentbab0ecf924c0f4ddbac5b86ba226a742828c8b40 (diff)
need to fix this in the futurev0.0.7
Diffstat (limited to 'wit.go')
-rw-r--r--wit.go5
1 files changed, 4 insertions, 1 deletions
diff --git a/wit.go b/wit.go
index 222731b..1b562a6 100644
--- a/wit.go
+++ b/wit.go
@@ -21,7 +21,10 @@ 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.FindByPackage(p.Package)
+ check, err := all.FindByPackageName(p.Package)
+ if err != nil {
+ panic("dup package names")
+ }
if check == nil {
all.Append(p)
return