-
-
Notifications
You must be signed in to change notification settings - Fork 152
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
Error using golang 1.18 #442
Comments
|
The matrix keys do not seem to match, would correcting that solve the problem?
|
fix is based on this comment: golangci/golangci-lint-action#442 (comment)
fix is based on this comment: golangci/golangci-lint-action#442 (comment)
I ran into a similar problem trying to update a repo to use Go 1.19 and The latest released binary of WorkaroundI worked around the issue by building Example: https://gist.github.com/rhcarvalho/9f2ae0742f5496271526b3e572da1d34 # .github/workflows/test.yml
# ...
jobs:
# ...
lint-go:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v3
with:
# go-version: 1.19
go-version-file: go.mod
# The builtin cache feature ensures that installing golangci-lint
# is consistently fast.
cache: true
cache-dependency-path: go.sum
- name: Install golangci-lint
# Install golangci-lint from source instead of using
# golangci-lint-action to ensure the golangci-lint binary is built with
# the same Go version we're targeting.
# Avoids incompatibility issues such as:
# - https://github.com/golangci/golangci-lint/issues/2922
# - https://github.com/golangci/golangci-lint/issues/2673
# - https://github.com/golangci/golangci-lint-action/issues/442
run: go install github.com/golangci/golangci-lint/cmd/[email protected]
- name: Run golangci-lint
run: golangci-lint run --version --verbose --out-format=github-actions I hope the above can help others ❤️ |
This reverts commit 7a5a75f. golangci-lint needs to be build with go 1.19 see golangci/golangci-lint-action#442 (comment)
I'm getting the error:
Which is a known issue for
golangci-lint
with golang v1.18.0 golangci/golangci-lint#2374My GitHub action file is:
I've also tried to use:
But both are failing, what can I do in that case?
The text was updated successfully, but these errors were encountered: