Skip to content

rework Makefile to run golangci lint in check#15

Merged
raghavendra-talur merged 3 commits into
TheEasyShift:mainfrom
obnoxxx:makefile-run-golagci-lint-in-check
Jun 23, 2026
Merged

rework Makefile to run golangci lint in check#15
raghavendra-talur merged 3 commits into
TheEasyShift:mainfrom
obnoxxx:makefile-run-golagci-lint-in-check

Conversation

@obnoxxx

@obnoxxx obnoxxx commented Jun 19, 2026

Copy link
Copy Markdown
Member

So far, make lint and make check only ran the lint.go.light target instead of lint.go.full, so it did not run golangci-lint.

This change reworks some make targets such that:

  • A new lint.go target is added as an alias to lint.go.full
  • lint runs the full go linting (lint.go).
  • check runs the full lint.
  • The now unused lint.light target is removed.

As a consequence, make check now runs the full linting, including golangci-lint.

In particular, as the CI runs make check, the CI now tests for golangci-lint regressions.

obnoxxx added 2 commits June 19, 2026 18:24
So far, `make lint` and `make check` only ran the lint.go.light target
which dot run golangci-lint.

This change reworks  some make targets such that

* A new lint.go target is added as analias to lint.go.full
*lint runs the full go linting (lint.go).
* check runs the full lint.

As a consequence, `make check` now runs the full linting including
golangci-lint.

In particular, as the CI runs `make check`, the CI now tests for
golangci-lint regressions.

Signed-off-by: Michael Adam <obnox@samba.org>
The lint.light target was not used anywhere and served no real
purpose.

This change removes this unused target.

Signed-off-by: Michael Adam <obnox@samba.org>
Copilot AI review requested due to automatic review settings June 19, 2026 16:34

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adjusts the Makefile’s lint/check wiring so that make check (and thus CI) runs the full Go lint suite, including golangci-lint, instead of only the “light” vet+gofmt checks.

Changes:

  • Switch check to depend on lint (full lint) rather than the removed lint.light.
  • Introduce lint.go as an alias target for lint.go.full and route lint through it.
  • Remove the unused lint.light target.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread Makefile
This change updates developer  and CLAUD docs to
reflect the changes in  check and lint targets.

Signed-off-by: Michael Adam <obnox@samba.org>
@raghavendra-talur raghavendra-talur merged commit 446a495 into TheEasyShift:main Jun 23, 2026
2 checks passed
@obnoxxx obnoxxx deleted the makefile-run-golagci-lint-in-check branch June 23, 2026 08:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants