gofmt
check fails if go.mod
and go.sum
are not in the root directory
#67
Labels
bug
Something isn't working
Describe the bug
The
gofmt
check fails if Go code is stored in a subdirectory of the repository:To Reproduce
git init .
.pre-commit-config.yaml
with the Gruntwork pre-commit repo and enable thegofmt
hookgo mod init test
git add .
to add the Go code and the.pre-commit-config.yaml
to the staging areapre-commit run gofmt
Expected behavior
The malformed Go file has its spaces replaced with tabs
Nice to have
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: