From f8ca5ba9db33c0f1d975f14fb609bfba6342de7c Mon Sep 17 00:00:00 2001 From: 0xmuralik Date: Mon, 17 Oct 2022 16:55:25 +0530 Subject: [PATCH] update linter --- .github/workflows/lint.yml | 4 ++-- utils/json.go | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index ca4509ea..801bcff7 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -20,10 +20,10 @@ jobs: .go .mod .sum - - uses: golangci/golangci-lint-action@v2.5.2 + - uses: golangci/golangci-lint-action@v3 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.42.1 + version: v1.48.0 args: --timeout 10m github-token: ${{ secrets.github_token }} # Check only if there are differences in the source code diff --git a/utils/json.go b/utils/json.go index f43bd75c..8adc6a9f 100644 --- a/utils/json.go +++ b/utils/json.go @@ -8,7 +8,6 @@ import ( "bytes" "errors" - "github.com/ipfs/go-cid" "github.com/ipld/go-ipld-prime/codec/dagcbor" "github.com/ipld/go-ipld-prime/fluent" "github.com/ipld/go-ipld-prime/linking" @@ -17,6 +16,7 @@ import ( "github.com/ipld/go-ipld-prime/storage/memstore" canonicalJson "github.com/gibson042/canonicaljson-go" + "github.com/ipfs/go-cid" cbor "github.com/ipfs/go-ipld-cbor" basicnode "github.com/ipld/go-ipld-prime/node/basic" mh "github.com/multiformats/go-multihash"