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

golangci-lint should be installed via binary (github release) not go installed #876

Open
sheldonhull opened this issue Sep 23, 2024 · 1 comment

Comments

@sheldonhull
Copy link
Contributor

Not only is it significantly slower, it's also the maintainers recommendation to install this via binary. This tool aggregates so many tools it's a really bad one to install from source.

I brought this up a while back and still use system installed golangci-lint to avoid the long download/initialization time, but would like to stop this and use trunk exclusively if we can get the binary installed instead.

binaries in github

@TylerJang27
Copy link
Collaborator

TylerJang27 commented Sep 23, 2024

We'll look into this, there may be a historical reason we did not do this initially. In the meantime, you can absolutely add a new download config for it and reference it with a runtime like we do for nancy (except using tools):

downloads:
  - # new golangci-lint download here
tools:
  definitions:
    - name: golangci-lint-2
      download: golangci-lint-download
      shims: [golangci-lint]
      known_good_version: 1.46.2
lint:
  definitions:
    - name: golangci-lint
       tools: [golangci-lint-2]
       runtime: go

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants