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

Create scheduled workflow to create PR for language version updates #32

Open
Cyberbeni opened this issue Dec 17, 2020 · 4 comments
Open
Labels
enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed

Comments

@Cyberbeni
Copy link
Contributor

Cyberbeni commented Dec 17, 2020

For languages that properly tag versions on github, using github.com/repoSlug/releases/latest redirect should be the best.
For example: https://github.com/apple/swift/releases/latest

Otherwise parsing the HTML of the download page seems to be the best option, for example the first <div class="toggleVisible" id="gox.y.z"> on https://golang.org/dl/ will give us the latest stable version.

@asottile asottile added enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed labels Dec 17, 2020
@Cyberbeni
Copy link
Contributor Author

Hm, even where the github releases are not properly done (rustup and go), the tags are still managed, so we could use this method to get the latest non-beta version tag: https://github.com/Cyberbeni/install-swift-tool/blob/master/src/installer.ts#L27-L38

(this.version would have to be '*', other parts of the code shouldn't require any explanation)

@Cyberbeni
Copy link
Contributor Author

I guess the "go" part will have to be trimmed from the start of the tag

@rkm
Copy link
Contributor

rkm commented Sep 20, 2021

I can make a stab at this if no one else has started?

I noticed that dotnet already has a newer version, so we can use it as a test case.

@rkm
Copy link
Contributor

rkm commented Sep 23, 2021

Here's my initial working attempt. Which managed to produce this PR: rkm#4.

Any thoughts / feedback?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed
Development

No branches or pull requests

3 participants