Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add version file #694

Open
L1ghtn1ng opened this issue Oct 16, 2024 · 12 comments
Open

Add version file #694

L1ghtn1ng opened this issue Oct 16, 2024 · 12 comments

Comments

@L1ghtn1ng
Copy link

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
Copy link
Contributor

odenix commented Oct 16, 2024

You could get this information from GitHub (https://github.com/apple/pkl/releases/latest or the equivalent REST endpoint).

@StefMa
Copy link
Contributor

StefMa commented Oct 16, 2024 via email

@odenix
Copy link
Contributor

odenix commented Oct 16, 2024

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

@L1ghtn1ng
Copy link
Author

L1ghtn1ng commented Oct 16, 2024 via email

@L1ghtn1ng
Copy link
Author

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

Yeah that would be good also

@L1ghtn1ng
Copy link
Author

@StefMa Your idea would also work as well

@bioball
Copy link
Contributor

bioball commented 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
Copy link
Author

@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

@bioball
Copy link
Contributor

bioball commented 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
Copy link
Author

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

@bioball
Copy link
Contributor

bioball commented 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
Copy link
Author

@bioball I ported my script to python and using the maven API gives me the info I need and does the job

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants
@L1ghtn1ng @bioball @StefMa @odenix and others