Add version file #217

Closed
opened 2025-12-30 01:22:22 +01:00 by adam · 12 comments
Owner

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

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
adam closed this issue 2025-12-30 01:22:22 +01:00
Author
Owner

@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).

@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).
Author
Owner

@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:

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 GitHub
https://github.com/apple/pkl/issues/694#issuecomment-2415673693, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/ACOBQ64ET5JZG5OGEYBDRF3Z3XPKTAVCNFSM6AAAAABQAP3T4CVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDIMJVGY3TGNRZGM
.
You are receiving this because you are subscribed to this thread.Message
ID: @.***>

@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: > 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 GitHub > <https://github.com/apple/pkl/issues/694#issuecomment-2415673693>, or > unsubscribe > <https://github.com/notifications/unsubscribe-auth/ACOBQ64ET5JZG5OGEYBDRF3Z3XPKTAVCNFSM6AAAAABQAP3T4CVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDIMJVGY3TGNRZGM> > . > You are receiving this because you are subscribed to this thread.Message > ID: ***@***.***> >
Author
Owner

@odenix commented on GitHub (Oct 16, 2024):

I think something like https://services.gradle.org/versions/ could be very useful for tooling.

@odenix commented on GitHub (Oct 16, 2024): I think something like https://services.gradle.org/versions/ could be very useful for tooling.
Author
Owner

@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): 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 GitHub<https://github.com/apple/pkl/issues/694#issuecomment-2415673693>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AA3V2QUXMECCGEOD2NYK2ADZ3XPKPAVCNFSM6AAAAABQAP3T4CVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDIMJVGY3TGNRZGM>. You are receiving this because you authored the thread.Message ID: ***@***.***>
Author
Owner

@L1ghtn1ng commented on GitHub (Oct 16, 2024):

I think something like https://services.gradle.org/versions/ could be very useful for tooling.

Yeah that would be good also

@L1ghtn1ng commented on GitHub (Oct 16, 2024): > I think something like https://services.gradle.org/versions/ could be very useful for tooling. Yeah that would be good also
Author
Owner

@L1ghtn1ng commented on GitHub (Oct 16, 2024):

@StefMa Your idea would also work as well

@L1ghtn1ng commented on GitHub (Oct 16, 2024): @StefMa Your idea would also work as well
Author
Owner

@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

@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`
Author
Owner

@L1ghtn1ng 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

Currently I just check the website to see the release version then bump the version in my script

@L1ghtn1ng 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` Currently I just check the website to see the release version then bump the version in my script
Author
Owner

@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?

@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?
Author
Owner

@L1ghtn1ng commented on GitHub (Oct 17, 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?

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

@L1ghtn1ng commented on GitHub (Oct 17, 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? 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
Author
Owner

@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.

@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.
Author
Owner

@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

@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
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/pkl#217