Coder Social home page Coder Social logo

Comments (7)

lrstanley avatar lrstanley commented on August 20, 2024 5

This is becoming a very annoying issue to have to work around. setup-go is constantly behind versions by quite a bit. When the Go team releases a new Go version that has fixes for various CVE's, it's critical to be able to pull that version and be able to release new versions/run new builds based off that new version.

The past 8 versions or so, I've been constantly behind, expecting to be able to run another build, and have it pull in an older version (sometimes more than one patch version behind!).

setup-go should really not require manual adjustments to get new versions. Maybe it's worth not reinventing the wheel, and utilizing something like https://github.com/travis-ci/gimme?

from setup-go.

circa10a avatar circa10a commented on August 20, 2024 3

Alternatively to get the latest:

steps:
  - id: vars
    run: |
      echo ::set-output name=go_version::$(curl -s https://raw.githubusercontent.com/actions/go-versions/main/versions-manifest.json | grep -oE '"version": "[0-9]{1}.[0-9]{1,}(.[0-9]{1,})?"' | head -1 | cut -d':' -f2 | sed 's/ //g; s/"//g')
  - name: Install Go
    uses: actions/setup-go@v2
    with:
      go-version: ${{ steps.vars.outputs.go_version }}

from setup-go.

circa10a avatar circa10a commented on August 20, 2024

Maybe support version: latest ?

from setup-go.

hazcod avatar hazcod commented on August 20, 2024

FYI I use a Docker image in .github/ which I update automatically with dependabot.

      -
        id: vars
        run: |
          echo ::set-output name=go_version::$(grep '^FROM go' .github/go/Dockerfile | cut -d ' ' -f 2 | cut -d ':' -f 2)
          echo "Using Go version ${{ steps.vars.outputs.go_version }}"
      -
        name: Setup go
        uses: actions/setup-go@v2
        with:
          go-version: ${{ steps.vars.outputs.go_version }}

from setup-go.

tianon avatar tianon commented on August 20, 2024

Maybe it's worth not reinventing the wheel, and utilizing something like https://github.com/travis-ci/gimme?

I can say that https://github.com/travis-ci/gimme isn't exactly well-maintained, but was designed such that it (ideally) doesn't have to be. 😅

(I helped create it initially, although I'm not involved much anymore.)

from setup-go.

lrstanley avatar lrstanley commented on August 20, 2024

Looking at go-versions, seems it's manually updated via an action. Why not have have it update automatically (and only when needed)? Could it run once a day (or sooner)? go-versions doesn't have issues enabled, so can't ask there...

from setup-go.

Sergey-Murtazin avatar Sergey-Murtazin commented on August 20, 2024

Hi, @alessio!
Thanks for your request!

We will consider whether to add check latest version functionality.

I close this issue because it's a duplicate of 73#
Feel free to contact us and/or reopen this issue if you have any questions

from setup-go.

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.