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.

[feature request] URL to latest release of repo

See original GitHub issue

For stability and to avoid rebuilding images with each commit, I usually make Binder URLs that point to the latest release/tag of my repo, rather than master. The trouble is, I have to keep updating that URL. It would be great if there was a single URL pattern that always matches “latest release”.

If the dates of tags are not available for some reason (for determining which one is “latest”), then perhaps the last in semantic version order? My release/tag names are all unadorned semantic versions (i.e. no project name, not even a “v” before the three numbers, separated by dots). A particularly slick implementation would support semantic version inequalities, like ">=1.2.3" to mean “1.2.3 or later, but not prereleases like 1.3.0rc1”.

This would benefit a common use-case of Binder for demonstrating software, where you want a permanent link to the latest stable version. Documentation usually has this, with a “latest” or “stable” tag in the URL pattern to go to the latest version of the documentation—it would be great if Binder had the same thing.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:1
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
jpivarskicommented, Oct 5, 2020

I didn’t. Whenever I use Binder, I manually set the URL tag to the latest tag, even if that means swimming it to a year that doesn’t exist yet (in order for the tagged release to contain eventually-correct URLs).

1reaction
jpivarskicommented, Jul 9, 2019

Don’t you have to delete and recreate a tag to move it? I would have thought that branches are easier to maintain for that reason. (And “easy” only if they’re going forward—I’m not sure what surgery is required if latest needs to roll back changes.)

Anyway, this is getting more into git than Binder. It would be nice to see this as part of a “best practices” suggestion (or maybe I missed it). One thing that could still be a useful Binder feature would be selecting based on a semantic version rule (e.g. ">=1.2.3") but this is a casual wish, since I could go and try to implement the latest branch myself for the most common functionality.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Linking to releases - GitHub Docs
Linking to releases. You can share every release you create on GitHub with a unique URL. On GitHub.com, navigate to the main page...
Read more >
Is there a link to GitHub for downloading a file in the latest ...
You can do an ajax request to get latest release download URL using the GitHub Releases API. It also shows when it was...
Read more >
Release links API - GitLab Docs
Use this API to manipulate GitLab Release links. For manipulating other Release assets, see Release API. GitLab supports links to http , https...
Read more >
Download artifacts from a latest GitHub release with bash and ...
As it's pointed out in the above SO answer, we can send a GET request to the URL https://github.com/account/project/releases/latest and set ...
Read more >
Getting started with Git and AWS CodeCommit
From the new directory, you get a separate copy of the CodeCommit repository. You then add a new example file, commit the changes...
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