diff --git a/templates/gitlab-ci-golang.yml b/templates/gitlab-ci-golang.yml index d4788e939a34c9ab27da0097c292c0ba5cf8943f..b33cd2590307c631a4973702dffebfbf4289368a 100644 --- a/templates/gitlab-ci-golang.yml +++ b/templates/gitlab-ci-golang.yml @@ -720,7 +720,7 @@ go-ci-lint: - mkdir -p -m 777 reports # produce all reports at once - | - glc_ver_major=$(golangci-lint version | cut -d' ' -f4 | cut -d'.' -f1) + glc_major_ver=$(golangci-lint version | cut -d' ' -f4 | cut -d'.' -f1) if [[ "$glc_major_ver" == "1" ]] then golangci-lint run --out-format "colored-line-number:stdout,code-climate:reports/go-ci-lint.codeclimate.json,checkstyle:reports/go-ci-lint.checkstyle.xml" $GO_CI_LINT_ARGS