Skip to content

Commit

Permalink
nson and binary on justfile.
Browse files Browse the repository at this point in the history
  • Loading branch information
fiatjaf committed Nov 2, 2023
1 parent 4c72e16 commit 9e593c4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion binary/hybrid.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
}()

Expand Down
6 changes: 4 additions & 2 deletions justfile
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 9e593c4

Please sign in to comment.