Giter Site home page Giter Site logo

Comments (3)

ldez avatar ldez commented on September 23, 2024 1

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.

amery avatar amery commented on September 23, 2024 1

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.

amery avatar amery commented on September 23, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.