Skip to content
This repository was archived by the owner on Feb 16, 2023. It is now read-only.

Commit c4114f4

Browse files
committed
Use docker image of linter in linting step
1 parent b3cd1fb commit c4114f4

2 files changed

Lines changed: 2 additions & 8 deletions

File tree

.circleci/config.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@ version: 2
22
jobs:
33
lint:
44
docker:
5-
- image: circleci/golang:1.13
5+
- image: golangci/golangci-lint:v1.23.8-alpine
66
steps:
77
- checkout
8-
- run: make lint-ci
8+
- run: make lint
99
test:
1010
docker:
1111
- image: circleci/golang:1.13

Makefile

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,6 @@ GOLANGCI_VERSION=v1.23.8
1919
lint-tools:
2020
@curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | sh -s -- -b $(go env GOPATH)/bin ${GOLANGCI_VERSION}
2121

22-
lint-ci:
23-
@echo "==> Installing linter"
24-
@wget -O - -q https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh| sh -s ${GOLANGCI_VERSION}
25-
@echo "==> Linting"
26-
@./bin/golangci-lint run ./...
27-
2822
COMMIT=`git rev-parse --short HEAD`
2923
VERSION=`git describe --always`
3024
BUILD_FLAGS=-ldflags "-s -w -X "github.com/secrethub/secrethub-cli/internals/secrethub.Commit=${COMMIT}" -X "github.com/secrethub/secrethub-cli/internals/secrethub.Version=${VERSION}"" -tags=production

0 commit comments

Comments
 (0)