question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Specifying go-version 1.19 defaults to 1.19.2, as opposed to the actual major version 1.19

See original GitHub issue

Description: I have specified an action with the specific version 1.19. I want that specific major version. However, the action is getting 1.19.2, which is not what I want. You can see a screenshot here.

image

Action version: v3

Platform:

  • Ubuntu
  • macOS
  • Windows

Runner type:

  • Hosted
  • Self-hosted

Tools version: 1.19

Repro steps:
Set up an action with the following characteristics:

 - name: set up go 1.19
    uses: actions/setup-go@v3
    with:
      go-version: 1.19
      check-latest: false
      cache: false
    id: go

Expected behavior: I expect the action to configure 1.19, not 1.19.2.

Actual behavior: The action is configuring 1.19.2.

Issue Analytics

  • State:closed
  • Created a year ago
  • Reactions:1
  • Comments:8 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
sebastian-quinterocommented, Nov 2, 2022

@e-korolevskii setting it as 1.19.0 solved the issue. 🌮 for you! Have a good day.

0reactions
li-jin-goucommented, Nov 7, 2022

Hello @jadn123. Could you please try to set check-latest: true. The action firstly will check the hostedToolCache directory. If the version is not found in the hostedToolCache the action will try to download it from go-versions. We updated versions-manifest.json that is why it should take the latest version.

I set check-latest: true, but it still installs version 1.19.2 instead of 1.19.3. this is pr https://github.com/gofiber/fiber/pull/2197. ❤️

I created a new issue https://github.com/actions/setup-go/issues/287 😁

Read more comments on GitHub >

github_iconTop Results From Across the Web

Go 1.19 Release Notes - The Go Programming Language
Introduction to Go 1.19​​ The latest Go release, version 1.19, arrives five months after Go 1.18. Most of its changes are in the...
Read more >
[security] Go 1.19.2 and Go 1.18.7 are released
Hello gophers,. We have just released Go versions 1.19.2 and 1.18.7, minor point releases. These minor releases include 3 security fixes ...
Read more >
golang - Official Image
Go (golang) is a general purpose, higher-level, imperative programming language.
Read more >
Managing Multiple Go Versions with Go
This post presents the benefits of using Go to work with multiple versions of Go, when it's beneficial and how it works under...
Read more >
Kubernetes 1.19: Accentuate the Paw-sitive
Authors: Kubernetes 1.19 Release Team Finally, we have arrived with Kubernetes 1.19, the second release for 2020, and by far the longest ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found