Comments (3)
This error happens because go1.20.14 doesn't support go1.21.
Run actions/setup-go@v5
with:
go-version: ~1.20
check-latest: false
token: ***
cache: true
Setup go version spec ~1.20
Found in cache @ /opt/hostedtoolcache/go/1.20.14/x64
Added go to the path
Successfully set up Go version ~1.20
https://github.com/amery/nanorpc/actions/runs/9215237540/job/25353175762?pr=10#step:2:9
The Go version format inside the go.mod
has changed since go1.21:
- before go1.21 the format was x.y
- after go1.21 the format is x.y.z
Note: the Go version inside the go.mod
is the minimal requirement, so the local Go version should be higher or equal to this version.
Your problem is here:
https://github.com/amery/nanorpc/blob/56aa15bd0cf08845ce3ca99e9774cf1a87ca5e15/.github/workflows/lint.yml#L20
You should replace go-version: '~1.20'
with go-version: oldstable
(recommended) or go-version: '~1.21'
from golangci-lint-action.
thank you @ldez, that solved the problem. thanks a lot for explaining the x.y.z thing, it's quite annoying.
from golangci-lint-action.
https://github.com/amery/nanorpc/actions/runs/9215237536/job/25353175774?pr=10 calls golangci-lint
as part of the build and succeeds.
https://github.com/amery/nanorpc/actions/runs/9215237540/job/25353175762?pr=10 fails, when using the action.
from golangci-lint-action.
Related Issues (20)
- cache upload hangs for 2 minutes after work is done HOT 2
- When a patch cannot be downloaded and `only-new-issues` is set, error instead of running HOT 8
- Make this action verified by GitHub HOT 2
- Problems when working with big diffs, such as vendored repository changes HOT 1
- golangci-lint-action failed on Push due to unable fetching commit diffs with --only-new-issues set HOT 2
- Dependabot PRs fail CI because it ignore only new issues HOT 21
- Support install-mode: none HOT 6
- `typecheck` not working with `go:embed` HOT 3
- Configurable cache key HOT 2
- Severity
- Static type checks doesn't include embedded types with github action HOT 6
- support pull_request_review event type for only-new-issues HOT 2
- Support for module plugin system via .custom-gcl.yml HOT 9
- github-actions is deprecated warning HOT 1
- Does not work on go 1.23 HOT 3
- Action fails due to using incorrect binary install path
- Tie the action default version to golangci/golangci-lint's release - release both when the underlying changes
- Killed Error: golangci-lint exit with code 137 HOT 3
- GH Action lints standard library HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from golangci-lint-action.