-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
Update golangci-lint in Makefile #17647
Conversation
- Partially resolvess go-gitea#17596 - Download specific version(v1.43.0) by default. - If current installed version is older than the minium version, it will download the mininium required version. - Update the install script to avoid deprecated error `golangci/golangci-lint err this script is deprecated, please do not use it anymore. check https://github.com/goreleaser/godownloader/issues/207`
I think we should do away with globally installed modules as different projects can require different versions of the linter, resulting in conflicts. Does golang offer a solution to install such devDependencies locally yet (Without fake imports)? |
Does golang offer such solution officially? No, it doesn't. |
Yeah, such fake imports are unacceptable I think because it will download/build these dependencies even on regular builds. |
Not if you have a custom |
For the version check, why not do it like it's done for go/node? It's much simpler and should suffice: Lines 200 to 205 in ab13797
|
f77b6ce
to
572dc3f
Compare
Not sure how I missed that part, the version check is now simplified, thanks. |
NVM that, it still requires to have a file with fake imports. |
This will also need to be updated in the following repo: https://gitea.com/gitea/test-env/ |
Download does not work, it tries on non-existing URL |
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Otherwise LGTM
Co-authored-by: zeripath <art27@cantab.net>
It bothers me a bit that the checks work differently the go/node which are defined with zero-padded numbers. Maybe make those checks match by either formatting/de-formatting their versions consistently? |
Voila - done. |
Codecov Report
@@ Coverage Diff @@
## main #17647 +/- ##
==========================================
- Coverage 45.35% 45.34% -0.02%
==========================================
Files 799 799
Lines 89062 89062
==========================================
- Hits 40393 40382 -11
- Misses 42163 42174 +11
Partials 6506 6506
Continue to review full report at Codecov.
|
* Update golangci-lint in Makefile - Partially resolvess go-gitea#17596 - Download specific version(v1.43.0) by default. - If current installed version is older than the minium version, it will download the mininium required version. - Update the install script to avoid deprecated error `golangci/golangci-lint err this script is deprecated, please do not use it anymore. check https://github.com/goreleaser/godownloader/issues/207` * Simplify golangci-lint version check * Fix version conversion * Add version that's downloading Co-authored-by: zeripath <art27@cantab.net> * Consistency Co-authored-by: zeripath <art27@cantab.net> Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com> Co-authored-by: techknowlogick <techknowlogick@gitea.io>
golangci/golangci-lint err this script is deprecated, please do not use it anymore. check https://github.com/goreleaser/godownloader/issues/207