integrations / terraform-provider-github

Terraform GitHub provider
https://www.terraform.io/docs/providers/github/
MIT License
906 stars 746 forks source link

[MAINT]: github.com/golangci/golangci-lint updates blocked by failing lints #1616

Closed kfcampbell closed 1 month ago

kfcampbell commented 1 year ago

Describe the need

See #1614 and other automated dependabot PRs. The last working version of github.com/golangci/golangci-lint is v1.41.1 with the project. After that, all runs of make lint fail with the following error:

level=warning msg="[runner] Can't run linter goanalysis_metalinter: buildir: failed to load package configload: could not load export data: no export data for \"github.com/hashicorp/terraform-plugin-sdk/internal/configs/configload\""
level=error msg="Running error: 1 error occurred:\n\t* can't run linter goanalysis_metalinter: buildir: failed to load package configload: could not load export data: no export data for \"github.com/hashicorp/terraform-plugin-sdk/internal/configs/configload\"\n\n"
make: *** [GNUmakefile:24: lint] Error 3
Error: Process completed with exit code 2.

This issue is reproducible locally.

SDK Version

N/A

API Version

N/A

Relevant log output

make lint
  shell: /usr/bin/bash -e {0}
==> Checking source code against linters...
golangci-lint run ./...
level=warning msg="[runner] Can't run linter goanalysis_metalinter: buildir: failed to load package configload: could not load export data: no export data for \"github.com/hashicorp/terraform-plugin-sdk/internal/configs/configload\""
level=error msg="Running error: 1 error occurred:\n\t* can't run linter goanalysis_metalinter: buildir: failed to load package configload: could not load export data: no export data for \"github.com/hashicorp/terraform-plugin-sdk/internal/configs/configload\"\n\n"
make: *** [GNUmakefile:24: lint] Error 3
Error: Process completed with exit code 2.

Code of Conduct

github-actions[bot] commented 10 months ago

👋 Hey Friends, this issue has been automatically marked as stale because it has no recent activity. It will be closed if no further activity occurs. Please add the Status: Pinned label if you feel that this issue needs to remain open/active. Thank you for your contributions and help in keeping things tidy!

github-actions[bot] commented 1 month ago

👋 Hey Friends, this issue has been automatically marked as stale because it has no recent activity. It will be closed if no further activity occurs. Please add the Status: Pinned label if you feel that this issue needs to remain open/active. Thank you for your contributions and help in keeping things tidy!