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

Check for newer release on GitHub #392

Merged
merged 1 commit into from
Aug 5, 2020
Merged

Conversation

gromgit
Copy link
Contributor

@gromgit gromgit commented Jul 31, 2020

Added a command-line flag (--check-update) for scripted use,
and prompts in the welcome message for the REPL.

Uses https://github.com/tcnksm/go-latest to do the heavy lifting.

Closes #334.

Copy link
Collaborator

@odino odino left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am generally wary of using external dependencies, so I'd try to avoid it if possible. We can rely on the fact that ABS' latest version is published here: we could then do a GET to that URL, compare the string we receive to the current version and prompt for an update there. Would you be able to make these changes?

@gromgit
Copy link
Contributor Author

gromgit commented Aug 5, 2020

We can rely on the fact that ABS' latest version is published here: we could then do a GET to that URL, compare the string we receive to the current version and prompt for an update there.

Done.

@gromgit gromgit requested a review from odino August 5, 2020 08:06
main.go Outdated Show resolved Hide resolved
repl/repl.go Outdated Show resolved Hide resolved
Added a command-line flag (--check-update) for scripted use,
and prompts in the welcome message in the REPL.

Uses https://github.com/tcnksm/go-latest to do the heavy lifting.

Closes abs-lang#334.
@odino
Copy link
Collaborator

odino commented Aug 5, 2020 via email

Copy link
Collaborator

@odino odino left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks good. I should be able to merge in the 2.3.x branch in the next 48h. I will also do a release with your other minor fix for comments if we get that sorted on time.

@odino odino changed the base branch from master to 2.3.x August 5, 2020 19:47
@odino odino merged commit 1ff1738 into abs-lang:2.3.x Aug 5, 2020
@gromgit gromgit deleted the version_check branch August 6, 2020 04:22
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

Successfully merging this pull request may close these issues.

Interpreter update prompt
2 participants