4
0

github_latest.adoc 3.3 KB

123456789101112131415161718192021222324252627282930
  1. = Warning - GitHub Latest
  2. NOTE: OliveTin 2k reached end of life on 25th November 2026, and no longer receives any updates, so no new 2k releases will be published. See xref:upgrade/2k3k.adoc#end-of-2k-support[End of support for OliveTin 2k].
  3. GitHub has a handy feature where releases can be marked as "latest". However, it does not understand that some projects, like OliveTin, had **two** active release streams, xref::upgrade/2k3k.adoc[2k and 3k]. Both of those individual streams could have a "latest" - the latest 2k version and the latest 3k version. Unfortunately, GitHub does not provide a way to mark a release at "latest-2k" or "latest-3k" - it only has "latest".
  4. While both streams were active, a 2k release would often come out AFTER a 3k release, and if we left GitHub to do what it does by default, the "latest" URL would be the 2k version - and then when a 3k release goes out, the "latest" URL would be point to a 3k version. This is probably not what you want - "latest" flipping between the "last release that went out". You want it to point to the latest 3k version.
  5. Therefore, the OliveTin project has disabled "latest" releases for all the 2k versions, so that the GitHub "latest" URL will always be the latest 3k version.
  6. This means that **GitHub "latest" URLs will now always point to a 3k version** (eg: `https://github.com/OliveTin/OliveTin/releases/latest/download/OliveTin_linux_amd64.rpm` = 3k version).
  7. [WARNING]
  8. If you have been using a script to download the latest version of OliveTin, **you will need to accept 3k, OR update your script to use the new workaround described below.**
  9. == Container Tags are unaffected
  10. Container registries allow any number of arbitary tags, so containers DO have a "latest-2k" and "latest-3k" tags. The breaking change described above is only for GitHub release URLs. So, you can still pull the final 2k version or the latest 3k version of the container if you want to. Learn more about available tags in the xref::install/container.adoc[Container Installation Guide].
  11. == What if I want to use the "latest 2k" download URL in my scripts?
  12. OliveTin 2k is end of life, so please plan to move to 3k rather than relying on 2k in your scripts. Until then, it is understood that some users will want to hard-code a "wget URL" for the final 2k version into their scripts. Unfortunately the GitHub "latest" URL is now no longer a reliable way to do this. However, the OliveTin project has provided you with a workaround.
  13. In the repository OliveTin/update-check.olivetin.app, there is a Python script that will return the latest 2k version number. You can use this to construct a URL for the latest 2k version. The file `versions.json` also contains the latest 3k versions, and provides download URLs and checksums for each package.
  14. * link:https://raw.githubusercontent.com/OliveTin/update-check.olivetin.app/refs/heads/main/versions.json[versions.json in the update-check.olivetin.app repository]
  15. This repository is updated automatically whenever a new 3k version is released. As no more 2k versions will be released, the 2k entry will always point to the final 2k version. Please check this repository README for details on how to use this file in your scripts to get the relevant download URLs;
  16. * link:https://github.com/OliveTin/update-check.olivetin.app/tree/main[update-check.olivetin.app README]