-
I have a config file golangci-pr.toml in my repo that sets When I run I have a github action, using the golangci-lint github action, with the configuration below, which reports a bunch of issues in files that aren't a part of this PR. I'm not sure what's going on. I'd like to be able to run the same command in the action and locally to make sure it's easy to get the same results... but I'm not getting the same results. :( Any ideas?
|
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
I think the answer is here: #1088 (comment) |
Beta Was this translation helpful? Give feedback.
-
Ahh shallow clone... Lemme see if i can twiddle with that. |
Beta Was this translation helpful? Give feedback.
-
ok, yeah, the fix is to set fetch-depth on the checkout to 0, which gets everything rather than just the last commit:
And you need to make sure you use new-from-rev="origin/main" not just "main"..... for reasons that are beyond my comprehension :) |
Beta Was this translation helpful? Give feedback.
ok, yeah, the fix is to set fetch-depth on the checkout to 0, which gets everything rather than just the last commit:
And you need to make sure you use new-from-rev="origin/main" not just "main"..... for reasons that are beyond my comprehension :)