From 1e48ec60667f7f2721a54e61d21e6720d432b140 Mon Sep 17 00:00:00 2001 From: serosset Date: Mon, 7 Nov 2022 14:22:31 +0000 Subject: [PATCH 1/2] upgrade to golangci-lint 1.50.1 --- .github/workflows/go.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index 0c9d5245..6fb1a59c 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -97,4 +97,4 @@ jobs: - uses: golangci/golangci-lint-action@v3.2.0 with: # https://github.com/golangci/golangci-lint-action/issues/535 - version: v1.47.3 + version: v1.50.1 From 313925b770a3a454981b601ecfc39d3daf73c5e6 Mon Sep 17 00:00:00 2001 From: serosset Date: Mon, 7 Nov 2022 14:25:31 +0000 Subject: [PATCH 2/2] reformat code according to go 1.19 rules --- cmd/root_test.go | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/cmd/root_test.go b/cmd/root_test.go index 87071e7e..d3dca57d 100644 --- a/cmd/root_test.go +++ b/cmd/root_test.go @@ -20,9 +20,12 @@ import ( // run profiling with // go test -v -cpuprofile cpu.prof -memprofile mem.prof -bench=. ./cmd // memory: -// go tool pprof mem.prof +// +// go tool pprof mem.prof +// // cpu: -// go tool pprof cpu.prof +// +// go tool pprof cpu.prof func BenchmarkRootRunE(b *testing.B) { zerolog.SetGlobalLevel(zerolog.NoLevel) output.Stdout = io.Discard