summaryrefslogtreecommitdiff
path: root/wit.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-10-07 07:13:29 -0500
committerJeff Carr <[email protected]>2025-10-07 07:13:29 -0500
commitc5c6afea125875e635efb26da039d83d65e7d67f (patch)
tree8fad7393e2c1f545b7c64e98fb0a919e20e6841c /wit.go
parent99f8eb08bdca46925e5a00d4dda4d9625694b86b (diff)
make this build on darwin
Diffstat (limited to 'wit.go')
-rw-r--r--wit.go7
1 files changed, 7 insertions, 0 deletions
diff --git a/wit.go b/wit.go
index a364de3..3a9019e 100644
--- a/wit.go
+++ b/wit.go
@@ -5,6 +5,7 @@ import (
"os"
"strings"
+ "go.wit.com/dev/davecgh/spew"
"go.wit.com/lib/fhelp"
)
@@ -127,6 +128,9 @@ func (m *Machine) InitWitMirrors() error {
func (all *Packages) AddIfNewer(p *Package) {
check := all.FindByName(p.Name)
if check == nil {
+ if p.Name == "zood" {
+ spew.Dump(p)
+ }
all.Append(p)
return
}
@@ -137,6 +141,9 @@ func (all *Packages) AddIfNewer(p *Package) {
return
}
if v1.LessThan(v2) {
+ if p.Name == "zood" {
+ spew.Dump(p)
+ }
// log.Info("removing", v1, "using", v2)
all.Delete(check)
all.Append(p)