From 7091726ca69c7874db9092e33b9395a13b7f788b Mon Sep 17 00:00:00 2001 From: Lucas Bajolet <105649352+lbajolet-hashicorp@users.noreply.github.com> Date: Mon, 12 Sep 2022 15:37:20 -0400 Subject: [PATCH] Makefile: bump golangci-lint to 1.46.0 (#11977) Since we moved to go 1.18, we should bump golangci-lint to a version that supports it. This change is motivated by the fact that some valid go code was being rejected by the `typecheck` with aliased modules beign unrecognised, namely the `hcl' module, imported from `hcl/v2'. This should not cause any issues as the typechecker should be aware that the package exported by `hcl/v2' is indeed called `hcl', but for some reason, with version 0.42.0, it does not work. --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 193dddc10..c6f145f3c 100644 --- a/Makefile +++ b/Makefile @@ -57,7 +57,7 @@ install-gen-deps: ## Install dependencies for code generation install-lint-deps: ## Install linter dependencies @echo "==> Updating linter dependencies..." - @curl -sSfL -q https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(GOPATH)/bin v1.42.0 + @curl -sSfL -q https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(GOPATH)/bin v1.46.0 dev: ## Build and install a development build @grep 'const VersionPrerelease = ""' version/version.go > /dev/null ; if [ $$? -eq 0 ]; then \