-
Notifications
You must be signed in to change notification settings - Fork 586
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
CI: fix Makefile not working with go 1.18 #800
Conversation
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.
LGTM 🎉
Approved for a CI run, should be automatic after this gets in (github new contributor clause). |
I wonder if we'll run into this here? golang/go#44840 |
It looks like you need to use at least |
I'll update the linter and fix whatever. Just a few and I'll be on it... |
Oh nevermind... #795 (comment) |
Actually, I just found your PR instead that aims to fix it. So I didn't start on a PR myself. |
Oh, haha, let me try latest golangci-lint locally and see what needs to update. |
Yikes it's a LOT, at least if you use the default enabled linters. |
If a lot of errors come from the same (new) linter, I think an option might also be to disable the linter (see |
K, lemme see how many would need to be disabled for btcwallet using golangci-ling 1.45.2, which I think is needed for go 1.18 practically |
I tried and it looked like |
OK wow, I'd suggest whitelisting linters (--disable-all and selective --enable) instead of the blacklisting (--enable-all and selective --disable). There are more than 20 linters (so far) that are going to be extremely difficult to satisfy. Alternative, use the 10 default linters and add any extras you want 1.45.0 was the big go 1.18 support release and there were panics before that version. https://github.com/golangci/golangci-lint/releases/tag/v1.45.0 just some that need to be disabled
|
go get is no longer used to install or build things. Use go install instead. Also specify a version so the module's go.mod is not touched when installing the CI tools.
Approved another CI run... |
CI looking pretty good... |
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.
LGTM 🏉
go get is no longer used to install or build things. Use go install
instead. Also specify a version so the module's go.mod is not
touched when installing the CI tools.