v4.12.2 breaks compatibility with golangci v1
Describe the bug
There is an issue in the script :
glc_ver_major=$(golangci-lint version | cut -d' ' -f4 | cut -d'.' -f1)
if [[ "$glc_major_ver" == "1" ]]
glc_ver_major variable is created, but glc_major_ver is tested
glc_major_ver != glc_ver_major
Expected behavior
Should work with golangci v1
Actual behavior
Fails because the version check fails and considers that a v1 is a v2
Logs and/or screenshots
Context & Configuration
Simple configuration with:
GO_CI_LINT_IMAGE: "registry.hub.docker.com/golangci/golangci-lint:v1.64-alpine"
