fix: run the Renovate post-upgrade script for golangci-lint only when updated in .tool-versions
What
Run the Renovate post-upgrade script for golangci-lint
only when updated in .tool-versions
.
Why
This should fix the golanci-lint
updates in common-ci-tasks-images
where it is updated in .tool-versions.build
instead and the post-upgrade script isn't needed, see common-ci-tasks-images!489 (comment 2349691850)
Command failed: if [ -x /opt/gitlab/renovate/post-renovate-upgrade.sh ]; then echo 'Running post-renovate-upgrade.sh'; RENOVATE_POSTUPG_DEP_TYPE="" /opt/gitlab/renovate/post-renovate-upgrade.sh 'golangci/golangci-lint' '.tool-versions.build'; elif [ -x ./scripts/update-asdf-version-variables.sh ]; then echo 'failing back to legacy postUpgradeTasks...'; ./scripts/update-asdf-version-variables.sh; fi
[2mmise[0m [34mgolangci-lint[0m@1.64.5 install
[2mmise[0m [34mgolangci-lint[0m@1.64.5 download golangci-lint-1.64.5-linux-amd64.tar.gz
[2mmise[0m [34mgolangci-lint[0m@1.64.5 checksum golangci-lint-1.64.5-linux-amd64.tar.gz
[2mmise[0m [34mgolangci-lint[0m@1.64.5 extract golangci-lint-1.64.5-linux-amd64.tar.gz
[2mmise[0m [34mgolangci-lint[0m@1.64.5 [38;5;10m✓[0m installed
[31mmise[0m [31mERROR[0m No version is set for shim: golangci-lint
Set a global default version with one of the following:
mise use -g golangci-lint@1.64.5
[31mmise[0m [31mERROR[0m [2mRun with --verbose or MISE_VERBOSE=1 for more information[0m
[31mmise[0m [31mERROR[0m No version is set for shim: golangci-lint
Set a global default version with one of the following:
mise use -g golangci-lint@1.64.5
[31mmise[0m [31mERROR[0m [2mRun with --verbose or MISE_VERBOSE=1 for more information[0m
[31mmise[0m [31mERROR[0m No version is set for shim: golangci-lint
Set a global default version with one of the following:
mise use -g golangci-lint@1.64.5
[31mmise[0m [31mERROR[0m [2mRun with --verbose or MISE_VERBOSE=1 for more information[0m
[31mmise[0m [31mERROR[0m No version is set for shim: golangci-lint
Set a global default version with one of the following:
mise use -g golangci-lint@1.64.5
[31mmise[0m [31mERROR[0m [2mRun with --verbose or MISE_VERBOSE=1 for more information[0m
Error: stat .golangci.yaml: no such file or directory