Pin golangCI to a specific version (#13142)

Automatic Merge
This commit is contained in:
Agniva De Sarker
2019-11-22 20:36:51 +05:30
committed by mattermod
parent d3c607f5c6
commit 5c41c8b173
3 changed files with 5 additions and 2 deletions

View File

@@ -64,7 +64,7 @@ jobs:
- run:
command: |
echo "Installing golangci-lint"
curl -sfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh| sh -s -- -b /usr/local/bin v1.21.0
curl -sfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh| sh -s -- -b /usr/local/bin v1.21.0 # Keep this in sync with .golangci.yml and Jenkinsfile.pr
cd mattermost-server
make config-reset
make check-style BUILD_NUMBER='${CIRCLE_BRANCH}-${CIRCLE_BUILD_NUM}'

View File

@@ -1,3 +1,6 @@
service:
golangci-lint-version: 1.21.0 # Keep this in sync with .circleci/config.yml and Jenkinsfile.pr
run:
timeout: 5m
modules-download-mode: vendor

View File

@@ -101,7 +101,7 @@ pipeline {
sh """
cd /go/src/github.com/mattermost/mattermost-server
echo "Installing golangci-lint"
curl -sfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh| sh -s -- -b /usr/local/bin v1.21.0
curl -sfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh| sh -s -- -b /usr/local/bin v1.21.0 # Keep this in sync with .golangci.yml and .circleci/config.yml
make config-reset
make check-style BUILD_NUMBER='${BRANCH_NAME}-${BUILD_NUMBER}'
make build BUILD_NUMBER='${BRANCH_NAME}-${BUILD_NUMBER}'