tfproviderlint is a package apparently maintained by a former HashiCorp employee, and it’s still used in many HashiCorp officially maintained codebases and third party providers, such as our Linode Provider. It hasn’t been updated for more than a year so it’s apparently unmaintained now.
Recently, this linter is broken on latest Go 1.27 release for Linode provider:
myusername@mymacbook terraform-provider-linode % make tflint
"$(cd tools && go tool -n tfproviderlint)" \
-AT001=false \
-AT004=false \
-R018=false \
./...
tfproviderlint: internal error: package "context" without types was imported from "github.com/linode/terraform-provider-linode/v4/linode/helper/customdiffs"
make: *** [tflint] Error 1
We have to set an env var GOTOOLCHAIN=go1.25.14 to workaround this issue. So my question is that does HashiCorp plan to bring this linter to the HashiCorp’s official GitHub org and maintain it? Or doesn’t HashiCorp recommend using this linter in a provider codebase?
I also filed an issue in the repository for detailed reproduction steps: tfproviderlint crashes under Go 1.27 with `package "context" without types` · Issue #345 · bflad/tfproviderlint · GitHub