From b00e26ae9030eba5dc94da936f03efc112a30325 Mon Sep 17 00:00:00 2001 From: Rodrigo Fonseca Date: Tue, 31 Dec 2024 10:17:45 -0300 Subject: [PATCH] fixup! fix(deps): update all non-major dependencies --- .github/workflows/golangci-lint.yml | 14 ++------------ .golangci.yml | 2 +- official/v7/search_test.go | 7 +++---- 3 files changed, 6 insertions(+), 17 deletions(-) diff --git a/.github/workflows/golangci-lint.yml b/.github/workflows/golangci-lint.yml index ba988ce..b27e3be 100644 --- a/.github/workflows/golangci-lint.yml +++ b/.github/workflows/golangci-lint.yml @@ -18,18 +18,8 @@ jobs: - name: Set up Go uses: actions/setup-go@v5 with: - go-version: 1.21.3 + go-version: stable - name: golangci-lint uses: golangci/golangci-lint-action@v6 with: - # Required: the version of golangci-lint is required and must be specified without patch version: we always use the latest patch version. - version: v1.54.2 - - # Optional: working directory, useful for monorepos - # working-directory: somedir - - # Optional: golangci-lint command line arguments. - # args: --issues-exit-code=0 - - # Optional: show only new issues if it's a pull request. The default value is `false`. - # only-new-issues: true + version: latest diff --git a/.golangci.yml b/.golangci.yml index 08337bc..fe22f31 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -19,7 +19,7 @@ linters: # - depguard # Go linter that checks if package imports are in a list of acceptable packages - bodyclose # checks whether HTTP response body is closed successfully - dupl # Tool for code clone detection - - exportloopref # checks for pointers to enclosing loop variables + - copyloopvar # checks for pointers to enclosing loop variables - goconst # Finds repeated strings that could be replaced by a constant - gocyclo # Computes and checks the cyclomatic complexity of functions - gofmt # Gofmt checks whether code was gofmt-ed. By default this tool runs with -s option to check for code simplification diff --git a/official/v7/search_test.go b/official/v7/search_test.go index 32fe5f3..6e02a2d 100644 --- a/official/v7/search_test.go +++ b/official/v7/search_test.go @@ -154,7 +154,6 @@ func Test_Search(t *testing.T) { } for _, test := range tests { - test := test t.Run(test.name, func(t *testing.T) { t.Parallel() assert.NotPanics(t, func() { @@ -226,7 +225,7 @@ func getMockFilter() Filter { Must: ExampleFilterMust{ Names: []string{"John", "Mary"}, Ages: []uint64{16, 17, 18, 25, 26}, - HasCovid: ref.Bool(true), + HasCovid: ref.Of(true), CovidInfo: NewNested( ExampleCovidInfo{ Symptoms: []string{"cough"}, @@ -265,10 +264,10 @@ func getMockFilter() Filter { Exists: ExampleFilterExists{ HasCovidInfo: NewNested( ExampleCovidInfo{ - HasCovidInfo: ref.Bool(true), + HasCovidInfo: ref.Of(true), }, ), - HasAge: ref.Bool(true), + HasAge: ref.Of(true), }, } }