Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

go feature: support pseudo-versions "stable" and "oldstable" #1289

Open
thediveo opened this issue Mar 5, 2025 · 2 comments
Open

go feature: support pseudo-versions "stable" and "oldstable" #1289

thediveo opened this issue Mar 5, 2025 · 2 comments
Assignees

Comments

@thediveo
Copy link

thediveo commented Mar 5, 2025

The GH action https://github.com/actions/setup-go has the notion of "stable" and "oldstable". This nicely supports the way the Go toolchain is supported always in versions 1.N and 1.N-1.

To my understanding, this "stable" is equivalent to "latest" in the go dev container feature. To easily test with stable and oldstable toolchain versions, I would like to propose to support also the pseudo-version "oldstable" to parallel the GH go-setup action mechanics. In this view, I propose to support also "stable" as an alias to "latest".

@Kaniska244
Copy link
Contributor

Kaniska244 commented Mar 7, 2025

Hello @thediveo ,

Thank you for raising this issue. By that convention, for devcontainer go feature (in fact for all relevant features) we are already providing the previous version with the actual version number which can be specified with the version option within go feature tag in devcontainer.json, Ref .

Kindly let me know if you feel this is really required & reason for the same.

With Regards,
Kaniska

@Kaniska244 Kaniska244 self-assigned this Mar 7, 2025
@thediveo
Copy link
Author

thediveo commented Mar 7, 2025

Understood, but I'm asking for a different use case than specific semver pinning -- the same as implemented in the Github action setup-go: you logically pin to "stable" and "oldstable" and oldstable will automatically resolve into 1.23, 1.24, ... over time without the need to update lots of devcontainer.jsons that reference the go feature. This allows for once and all, like with Github actions, to provide devs with two well-definied environments on Go stable and oldstable, automatically progressing as the Go project releases new "major" go toolchain versions each 6 months.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants