From 9e593c44c2503b2a01099ce625fd5f34034a8d42 Mon Sep 17 00:00:00 2001 From: fiatjaf Date: Thu, 2 Nov 2023 15:29:27 -0300 Subject: [PATCH] nson and binary on justfile. --- binary/hybrid.go | 2 +- justfile | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/binary/hybrid.go b/binary/hybrid.go index 97eb33b..a52df51 100644 --- a/binary/hybrid.go +++ b/binary/hybrid.go @@ -11,7 +11,7 @@ import ( func Unmarshal(data []byte, evt *nostr.Event) (err error) { defer func() { if r := recover(); r != nil { - err = fmt.Errorf("failed to decode leaner: %v", r) + err = fmt.Errorf("failed to decode binary: %v", r) } }() diff --git a/justfile b/justfile index 64a3b36..7f0c5ee 100644 --- a/justfile +++ b/justfile @@ -1,13 +1,15 @@ build-all: #!/usr/bin/env fish for dir in (find . -maxdepth 1 -type d -name "nip*") - echo "building $dir" go build "./$dir" end + go build ./nson + go build ./binary test-all: #!/usr/bin/env fish for dir in (find . -maxdepth 1 -type d -name "nip*") - echo "testing $dir" go test "./$dir" end + go test ./nson + go test ./binary