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.

Add an alias for the previous stable Go release

See original GitHub issue

Description: I’d like setup-go to support stable and oldstable as Go version identifiers. stable would resolve to the latest patch release of the current stable minor release (so 1.18.x today), and oldstable would resolve to the latest patch release of the previous minor release (so 1.17.x today). These aliases make it easy for projects to offer the same support policy as the Go language.

Justification: With semver ranges, it’s easy to express “use the latest Go release”: ^1.18.1 works. However, this is an awkward approach for Go projects:

  • Go doesn’t use this style of semantic versioning for dependency management, so the syntax is unfamiliar to much of the target audience.
  • Many projects mirror Go’s own support policy and want to test on both stable and oldstable. Expressing this today requires changing the workflow definition every 6 months.
  • Travis CI’s gimme has supported this for years, starting with https://github.com/travis-ci/gimme/pull/170 from @abhinav.

I’m not attached to the stable and oldstable names in particular (I think Travis CI wanted oldstable because it’s similar to a Debian convention) - happy to use whatever you’d like.

Are you willing to submit a PR? Happy to.

Issue Analytics

  • State:closed
  • Created a year ago
  • Reactions:5
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
IvanZosimovcommented, May 6, 2022

Thank you for your request, @akshayjshah ! We will investigate the possibility of implementing this feature and get back to you with some updates 👍

1reaction
akshayjshahcommented, Dec 22, 2022

Works as expected - thanks for implementing and releasing this! 😻

Read more comments on GitHub >

github_iconTop Results From Across the Web

proposal: dl: add latest download alias #38150 - golang/go
Motivation Setting up a Go release in a new environment requires using download ... one can use the alias for the latest stable...
Read more >
Go 1.18 Release Notes - The Go Programming Language
An interface now defines a set of types as well as a set of methods. The new predeclared identifier any is an alias...
Read more >
Go 1.16 Release Notes - The Go Programming Language
Go 1.16 adds support of 64-bit ARM architecture on macOS (also known as Apple Silicon) ... Go 1.16 is the last release that...
Read more >
How do I create a permanent Bash alias? - Ask Ubuntu
To create an alias permanently add the alias to your .bashrc file gedit ~/.bashrc. And then add your alias at the bottom. alt...
Read more >
How to install multiple versions of Go - Dave Cheney
In this example I'm going to build the latest release of Go, 1.2.1, and the previous stable release 1.1.2. You can extend this...
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