Comments (9)
@fredmaggiowski This is what I use:
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: 'stable'
check-latest: true
- run: go run hello.go
from setup-go.
I believe you're confusing two caches: the tool cache vs the build/package cache, which the argument is for README link.
It sounds like what you want are the stable
and oldstable
aliases, which are mentioned in the README here.
from setup-go.
ok got it thanks, so being everything sourced from go-versions
I assume using stable will give me go1.22 since is currently the latest "stable" version
What if I want to test with versions that are not yet stable? For instance, once we have the first rc for go1.23, use it to make sure my codebase will not have issues
from setup-go.
Hello @spencerschrock, Thank you for creating the issue and we will look into it :)
from setup-go.
Hello @spencerschrock, Thank you once again for creating this issue
If we want to test with versions of Go that are not yet stable, you can specify the exact version in the with.go-version field of your workflow file. This field supports the 1.x syntax, so you can use 1.23.x to test with the latest release of Go 1.23, including any release candidates. Please refere this document
The actions/setup-go action is designed to download and set up a Go environment of any version specified in the go-version input of the action. The action uses the official Go downloads, which include both stable and unstable versions.
However, the actions/setup-go action only supports versions that are available in the go-versions repository.
However, it's important to note that using non-stable versions may lead to potential instability in your workflows, as they may have not been fully tested or may contain bugs. The best practice is to use stable versions for production code.
from setup-go.
Hello @spencerschrock, Please confirm that the above clarification is helpful to proceed to close the issue.
from setup-go.
I'm not the issue author, I'm assuming you meant @fredmaggiowski
from setup-go.
I'm not the issue author, I'm assuming you meant @fredmaggiowski
I guess you are right lol
Hello @spencerschrock, Please confirm that the above clarification is helpful to proceed to close the issue.
Yes @aparnajyothi-y sorry for the delay, I had a few busy weeks; i'm verifying it later today and come back at you asap :)
from setup-go.
@fredmaggiowski This is what I use:
steps: - uses: actions/checkout@v4 - uses: actions/setup-go@v5 with: go-version: 'stable' check-latest: true - run: go run hello.go
@gaby It seems to work, thanks!
https://github.com/rond-authz/rond/actions/runs/7986038478/job/21805633813?pr=323#step:3:11
![image](https://private-user-images.githubusercontent.com/7142570/306551724-b3a4af58-acd7-45d9-a132-6c67c1b67506.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTI3MjgxMzQsIm5iZiI6MTcxMjcyNzgzNCwicGF0aCI6Ii83MTQyNTcwLzMwNjU1MTcyNC1iM2E0YWY1OC1hY2Q3LTQ1ZDktYTEzMi02YzY3YzFiNjc1MDYucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI0MDQxMCUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNDA0MTBUMDU0MzU0WiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9NjIwYWU3NGY2NmUzZjlmNGJlZGQ5M2U3NjY1ZTVhYjVkYWQxOTMxODljNTQzZmY1NWM3OWU5OWVlYmVmZTVmYyZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QmYWN0b3JfaWQ9MCZrZXlfaWQ9MCZyZXBvX2lkPTAifQ.YCC0vFwnLI8X7jQCh9o3_JGidNIHmG1Acjr2UOxwUcc)
from setup-go.
Related Issues (20)
- Long post job cleanup HOT 8
- v4 cache attempt to write to non existent drive on windows HOT 13
- setup-go does not pick up recent Go version leading to create vulnerable builds HOT 6
- support: gotip HOT 6
- https://salla.sa/bero2030.com HOT 1
- Berroe8 HOT 1
- caches grow unbounded HOT 6
- ENOENT: no such file or directory, mkdir '/home/runner' in macos-latest HOT 3
- Use version from module and another version in matrix testing HOT 2
- Allow for collapsing log output HOT 2
- go 1.22.0-rc.1 is not found HOT 2
- setup-go does not work on macos-14 (M1) HOT 6
- More specific handling/detection of Go toolchain versions HOT 3
- Inaccurate description of version in go.mod HOT 2
- Please upgrade `go-actions` to 1.21.8 / 1.22.1 HOT 3
- Signing key has expired HOT 2
- Node16 deprecated HOT 1
- Support custom distribution location override HOT 1
- Can't cache dependencies from a composite action HOT 9
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 setup-go.