-
Notifications
You must be signed in to change notification settings - Fork 433
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
golangci-lint issues #69
Comments
I don't follow - what is failing? As far as I can see, the GH Action for lint has passed? Running with
|
Adding -v was the cause of this failure. Just fixed my repo. I was making both GitHub action and lint sh similar by adding a .golangci.yaml which both uses. Now we have two things make lint and then we run lint using GitHub action. Why not make lint in all places? Need to keep both same and duplicate code now! Really nice thing with the repo was u could run make task anywhere, with GitHub action that's not happening |
You are right that we could `make lint` in the Action. That said, I
rather dislike having the entirety of golangci-lint and all its
dependencies in the repo.
PR welcome to make the "lint" action more like the "tests" action
…On Thu, Jul 28, 2022 at 9:14 AM Alok Kumar Singh ***@***.***> wrote:
Adding -v was the cause of this failure.
But point of make was not duplicating things in the ci/GitHub actions
Now we have two things make lint and then we run lint using GitHub action. Why not make lint there also?
Need to keep both same and duplicate code now
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you were assigned.Message ID: ***@***.***>
|
Issue1
go 1.18 support is not there in linter yet golangci/golangci-lint#2649, so these start failing https://github.com/thockin/go-build-template/blob/master/.github/workflows/lint.yaml#L39 if imports are of generic code
Issue2
Github action is using
and the local
make lint
is usingIt is failing as
lint.sh
needs the same parameters as github actions to show the same behaviour, fixed in my local by adding golangci.yaml and adding this tolint.sh
:ERRS=$(golangci-lint run -v --max-same-issues 10 --disable-all --exclude-use-default=false "$@" 2>&1 || true)
I can push the fix if you are ok with it ^
The text was updated successfully, but these errors were encountered: