mirror of
https://github.com/apple/pkl.git
synced 2026-03-04 15:10:10 +01:00
Add version file #217
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @L1ghtn1ng on GitHub (Oct 16, 2024).
Can a version file be added to the repo that contains always the latest stable released version in it please?
Will allow me to auto update pkl and I suspect others will be able to then as well
@odenix commented on GitHub (Oct 16, 2024):
You could get this information from GitHub (https://github.com/apple/pkl/releases/latest or the equivalent REST endpoint).
@StefMa commented on GitHub (Oct 16, 2024):
Would remind me of another feature. Maybe the cli can print something like
"there is a new version available. Want to update? [y/n]"
On Wed, Oct 16, 2024, 5:53 AM translatenix @.***> wrote:
@odenix commented on GitHub (Oct 16, 2024):
I think something like https://services.gradle.org/versions/ could be very useful for tooling.
@L1ghtn1ng commented on GitHub (Oct 16, 2024):
The golang repo has it which makes it very easy to do without any jumping around so was hoping for the same
On 16 Oct 2024, at 04:53, translatenix @.***> wrote:
You could get this information from GitHub (https://github.com/apple/pkl/releases/latest or the equivalent REST API).
—
Reply to this email directly, view it on GitHubhttps://github.com/apple/pkl/issues/694#issuecomment-2415673693, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AA3V2QUXMECCGEOD2NYK2ADZ3XPKPAVCNFSM6AAAAABQAP3T4CVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDIMJVGY3TGNRZGM.
You are receiving this because you authored the thread.Message ID: @.***>
@L1ghtn1ng commented on GitHub (Oct 16, 2024):
Yeah that would be good also
@L1ghtn1ng commented on GitHub (Oct 16, 2024):
@StefMa Your idea would also work as well
@bioball commented on GitHub (Oct 16, 2024):
@L1ghtn1ng what is your workflow for discovering new Pkl versions? Can you use the GitHub releases API, or Maven's search API instead?
Maven's search API:
https://search.maven.org/solrsearch/select?q=g:org.pkl-lang+AND+a:pkl-core&wt=json@L1ghtn1ng commented on GitHub (Oct 16, 2024):
Currently I just check the website to see the release version then bump the version in my script
@bioball commented on GitHub (Oct 16, 2024):
What would your flow look like if we had a version file? And, instead of that flow, can you ping Maven Central or GitHub releases instead?
@L1ghtn1ng commented on GitHub (Oct 17, 2024):
I would be able to do what I do in my golang updater were I query the version file and then compare the output of the current version installed and then update it if required, will see about the other flows but that would be having a version file is the simplest and easiest way of doing at first glance
@bioball commented on GitHub (Oct 22, 2024):
I don't think your ask is un-reasonable, but I'd like to see if there is significant interest here before adding a new file for this. But, in the meantime, you can unblock yourself by querying either the GitHub or Maven APIs for newer versions.
@L1ghtn1ng commented on GitHub (Nov 10, 2024):
@bioball I ported my script to python and using the maven API gives me the info I need and does the job