From acc78b0c59cd0a6f1b6bf65e9fbccb34fe3fcae5 Mon Sep 17 00:00:00 2001 From: Alessandro Sanino Date: Tue, 21 Sep 2021 01:07:25 +0200 Subject: [PATCH] Fixed lint issue Signed-off-by: Alessandro Sanino --- .github/workflows/go.yml | 25 +++++++------------------ go.mod | 17 +++++++++++++++++ 2 files changed, 24 insertions(+), 18 deletions(-) diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index b47bd88..127d32d 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -30,21 +30,10 @@ jobs: run: ./scripts/runUnitTests.sh lint: - name: Lint - runs-on: ubuntu-latest - steps: - - name: Set up latest stable Go - uses: actions/setup-go@v2 - with: - go-version: "^1.16" - id: go - - - name: Check out code into the Go module directory - uses: actions/checkout@v2 - - - name: Lint - run: | - mkdir ./bin - curl -sfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b ./bin v1.21.0 - export PATH="$(pwd)/bin:$PATH" - ./scripts/runLint.sh + golangci: + name: lint + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - name: golangci-lint + uses: golangci/golangci-lint-action@v2 diff --git a/go.mod b/go.mod index 29398a8..a45665c 100644 --- a/go.mod +++ b/go.mod @@ -8,3 +8,20 @@ require ( github.com/stretchr/testify v1.7.0 go.mongodb.org/mongo-driver v1.7.0 ) + +require ( + github.com/davecgh/go-spew v1.1.1 // indirect + github.com/go-stack/stack v1.8.0 // indirect + github.com/golang/snappy v0.0.1 // indirect + github.com/klauspost/compress v1.9.5 // indirect + github.com/pkg/errors v0.9.1 // indirect + github.com/pmezard/go-difflib v1.0.0 // indirect + github.com/xdg-go/pbkdf2 v1.0.0 // indirect + github.com/xdg-go/scram v1.0.2 // indirect + github.com/xdg-go/stringprep v1.0.2 // indirect + github.com/youmark/pkcs8 v0.0.0-20181117223130-1be2e3e5546d // indirect + golang.org/x/crypto v0.0.0-20200302210943-78000ba7a073 // indirect + golang.org/x/sync v0.0.0-20190911185100-cd5d95a43a6e // indirect + golang.org/x/text v0.3.5 // indirect + gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c // indirect +)