You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Clone the
git clone [email protected]:hashicorp/terraform-provider-scaffolding-framework.git
# Set up truk
trunk init
# Run trunk## I got the violation with the `-a` option
$ trunk check -a
Checking 100% [=================================================================================================================>] 10/10 1.0s
ISSUES
tools:0:0
0:0 high typechecking error: build constraints exclude all Go files in golangci-lint/error
/Users/yu/local/src/github/terraform-provider-scaffolding-framework/tools
## I didn't get the violation by passing the root directly
$ trunk check .
Checking 100% [=================================================================================================================>] 10/10 1.0s
Checked 3 files
1 existing issue (use --show-existing to see it)
✔ No new issues
NOTE: behavior of golangci-lint
# I didn't get anything if passing the root directly
$ golangci-lint run .# I got the same violation if speciflyng the 'tools' directory.
$ golangci-lint run tools/
ERRO [linters_context] typechecking error: build constraints exclude all Go files in /Users/yu/local/src/github/terraform-provider-scaffolding-framework/tools
The text was updated successfully, but these errors were encountered:
Overview
I got an unexpected violation of golangci-lint with a
trunk check -a
command.Expected behavior
We don't the violation even with the
-a
option.How to reproduce
I encountered the enexpected behavior, when I developed a terraform provider based on the scafolding framework.
https://github.com/hashicorp/terraform-provider-scaffolding-framework
Config file
Commands
NOTE: behavior of golangci-lint
The text was updated successfully, but these errors were encountered: