Skip to content
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

Make lint.sh to run golangci-lint only once in the best case #2062

Merged
merged 1 commit into from
Jan 2, 2025

Conversation

denik
Copy link
Contributor

@denik denik commented Jan 2, 2025

Follow up to #2051 and #2056.

Running golangci-lint twice always is measurably slower (1.5s vs 2.5s), so only run it twice in case it is necessary.

Follow up to #2051 and #2056.

Running golangci-lint twice always is measurably slower (1.5s vs 2.5s).
Copy link

github-actions bot commented Jan 2, 2025

If integration tests don't run automatically, an authorized user can run them manually by following the instructions below:

Trigger:
go/deco-tests-run/cli

Inputs:

  • PR number: 2062
  • Commit SHA: 98b80c48bbfc2e439847ce17a4b48d73a2db4ff5

Checks will be approved automatically on success.

@denik denik temporarily deployed to test-trigger-is January 2, 2025 09:43 — with GitHub Actions Inactive
@denik denik merged commit c262b75 into main Jan 2, 2025
8 of 9 checks passed
@denik denik deleted the denik/fast-make-lint branch January 2, 2025 10:33
denik added a commit that referenced this pull request Jan 10, 2025
See Makefile for explanation on difference between 'make fmt' and 'make lint'.

I also removed lint.sh. Original motivation was to use it in aider, but it's not
a good fit there, because aider passes filenames and it does not work well with
golangci-lint which requires whole packages to work.

Follow up to #2062.
denik added a commit that referenced this pull request Jan 10, 2025
See Makefile for explanation on difference between 'make fmt' and 'make
lint'.

I also removed lint.sh. Original motivation was to use it in aider, but
it's not a good fit there, because aider passes filenames and it does
not work well with most golang linters which requires whole packages to
work.

Follow up to #2062, #2056, #2051.
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.

2 participants