Skip to content

Commit

Permalink
update modules
Browse files Browse the repository at this point in the history
  • Loading branch information
dimus committed Oct 1, 2022
1 parent c43d534 commit 443e356
Show file tree
Hide file tree
Showing 6 changed files with 70 additions and 84 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

## [v1.0.1] - 2022-09-30 Fri

- Add: update all modules

## [v1.0.0] - 2022-08-24 Wed

- Add: prepare for v1.0.0
Expand Down
4 changes: 2 additions & 2 deletions gnverifier.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ package gnverifier
import (
"context"
"errors"
"log"
"sync"
"time"

Expand All @@ -12,6 +11,7 @@ import (
"github.com/gnames/gnquery/ent/search"
"github.com/gnames/gnverifier/config"
"github.com/gnames/gnverifier/ent/verifier"
"github.com/rs/zerolog/log"
)

type gnverifier struct {
Expand Down Expand Up @@ -123,7 +123,7 @@ func (gnv gnverifier) verifyWorker(
}
verif := gnv.verifier.Verify(ctx, params)
if len(verif.Names) < 1 {
log.Fatalf("Did not get results from verifier")
log.Fatal().Msgf("Did not get results from verifier")
}
out <- verif.Names
}
Expand Down
8 changes: 4 additions & 4 deletions gnverifier/cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -365,7 +365,7 @@ func checkStdin() bool {
stdInFile := os.Stdin
stat, err := stdInFile.Stat()
if err != nil {
log.Fatal().Err(err)
log.Fatal().Err(err).Msg("checkStdin")
}
return (stat.Mode() & os.ModeCharDevice) == 0
}
Expand All @@ -387,7 +387,7 @@ func verify(gnv gnverifier.GNverifier, str string) {
if fileExists {
f, err := os.OpenFile(str, os.O_RDONLY, os.ModePerm)
if err != nil {
log.Fatal().Err(err)
log.Fatal().Err(err).Msg("verify")
}
verifyFile(gnv, f)
f.Close()
Expand Down Expand Up @@ -452,7 +452,7 @@ func processResults(gnv gnverifier.GNverifier, out <-chan []vlib.Name,
func verifyString(gnv gnverifier.GNverifier, name string) {
res, err := gnv.VerifyOne(name)
if err != nil {
log.Fatal().Err(err)
log.Fatal().Err(err).Msg("verifyString")
}

f := gnv.Config().Format
Expand All @@ -473,7 +473,7 @@ func searchQuery(gnv gnverifier.GNverifier, s string) {
}
res, err := gnv.Search(context.Background(), inp)
if err != nil {
log.Fatal().Err(err)
log.Fatal().Err(err).Msg("searchQuery")
}

f := gnv.Config().Format
Expand Down
37 changes: 18 additions & 19 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -5,19 +5,19 @@ go 1.19
require (
github.com/dnaeon/go-vcr v1.2.0
github.com/dustin/go-humanize v1.0.0
github.com/gnames/gnfmt v0.2.0
github.com/gnames/gnfmt v0.3.0
github.com/gnames/gnlib v0.14.0
github.com/gnames/gnquery v0.3.3
github.com/gnames/gnsys v0.2.2
github.com/gnames/gnuuid v0.1.1
github.com/labstack/echo/v4 v4.7.2
github.com/labstack/echo/v4 v4.9.0
github.com/labstack/gommon v0.3.1
github.com/maxbrunsfeld/counterfeiter/v6 v6.5.0
github.com/rs/zerolog v1.26.1
github.com/rs/zerolog v1.28.0
github.com/sfgrp/lognsq v0.1.1
github.com/spf13/cobra v1.4.0
github.com/spf13/viper v1.11.0
github.com/stretchr/testify v1.7.1
github.com/spf13/cobra v1.5.0
github.com/spf13/viper v1.13.0
github.com/stretchr/testify v1.8.0
gopkg.in/yaml.v2 v2.4.0
)

Expand All @@ -26,12 +26,11 @@ require (
github.com/fsnotify/fsnotify v1.5.4 // indirect
github.com/gnames/gnstats v0.1.0 // indirect
github.com/golang-jwt/jwt v3.2.2+incompatible // indirect
github.com/golang/snappy v0.0.4 // indirect
github.com/google/uuid v1.3.0 // indirect
github.com/golang/snappy v0.0.3 // indirect
github.com/google/uuid v1.2.0 // indirect
github.com/hashicorp/hcl v1.0.0 // indirect
github.com/inconshreveable/mousetrap v1.0.0 // indirect
github.com/json-iterator/go v1.1.12 // indirect
github.com/kr/pretty v0.3.0 // indirect
github.com/magiconair/properties v1.8.6 // indirect
github.com/mattn/go-colorable v0.1.12 // indirect
github.com/mattn/go-isatty v0.0.14 // indirect
Expand All @@ -40,26 +39,26 @@ require (
github.com/modern-go/reflect2 v1.0.2 // indirect
github.com/nsqio/go-nsq v1.1.0 // indirect
github.com/pelletier/go-toml v1.9.5 // indirect
github.com/pelletier/go-toml/v2 v2.0.1 // indirect
github.com/pelletier/go-toml/v2 v2.0.5 // indirect
github.com/pmezard/go-difflib v1.0.0 // indirect
github.com/pointlander/compress v1.1.1-0.20190518213731-ff44bd196cc3 // indirect
github.com/pointlander/jetset v1.0.1-0.20190518214125-eee7eff80bd4 // indirect
github.com/pointlander/peg v1.0.1 // indirect
github.com/spf13/afero v1.8.2 // indirect
github.com/spf13/cast v1.4.1 // indirect
github.com/spf13/cast v1.5.0 // indirect
github.com/spf13/jwalterweatherman v1.1.0 // indirect
github.com/spf13/pflag v1.0.5 // indirect
github.com/subosito/gotenv v1.2.0 // indirect
github.com/subosito/gotenv v1.4.1 // indirect
github.com/valyala/bytebufferpool v1.0.0 // indirect
github.com/valyala/fasttemplate v1.2.1 // indirect
golang.org/x/crypto v0.0.0-20220507011949-2cf3adece122 // indirect
golang.org/x/crypto v0.0.0-20220411220226-7b82a4e95df4 // indirect
golang.org/x/mod v0.6.0-dev.0.20220106191415-9b9b3d81d5e3 // indirect
golang.org/x/net v0.0.0-20220425223048-2871e0cb64e4 // indirect
golang.org/x/sys v0.0.0-20220503163025-988cb79eb6c6 // indirect
golang.org/x/net v0.0.0-20220520000938-2e3eb7b945c2 // indirect
golang.org/x/sys v0.0.0-20220520151302-bc2c85ada10a // indirect
golang.org/x/text v0.3.7 // indirect
golang.org/x/time v0.0.0-20220411224347-583f2d630306 // indirect
golang.org/x/time v0.0.0-20201208040808-7e3f01d25324 // indirect
golang.org/x/tools v0.1.10 // indirect
golang.org/x/xerrors v0.0.0-20220411194840-2f41105eb62f // indirect
gopkg.in/ini.v1 v1.66.4 // indirect
gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b // indirect
golang.org/x/xerrors v0.0.0-20220517211312-f3a8303e98df // indirect
gopkg.in/ini.v1 v1.67.0 // indirect
gopkg.in/yaml.v3 v3.0.1 // indirect
)
Loading

0 comments on commit 443e356

Please sign in to comment.