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

added update checker for latest release of dum #46

Closed
wants to merge 3 commits into from

Conversation

xEgoist
Copy link

@xEgoist xEgoist commented Mar 24, 2022

closes #28

The checker uses a get request to GitHub releases to find the latest version from its tag. If using GitHub is not ideal, other API's can be used instead such as crates.io .

This change required two additional libraries to make the request and deserialize it. Therefore ureq and serde were added to Cargo.toml .

If other options are preferred, I would be more than happy to apply them.

the checker uses a get request to github releases to find the latest version from its tag.
+Added two libraries "ureq" and "serde" for handling the request.
@egoist
Copy link
Owner

egoist commented Mar 25, 2022

it seems this is blocking until the network request is resolved. ideally, I prefer something like https://github.com/yeoman/update-notifier#how which doesn't block it.

xEgoist added 2 commits March 25, 2022 13:05
while ureq is a very minimal http request library, it only implements blocking API.
this change requires using tokio for the async function.
@egoist
Copy link
Owner

egoist commented Mar 26, 2022

Actually, I think you misunderstood, this will still wait for a network request before actually parsing the cli args, what I want is to spawn a child process to check for updates and notify if there is an update the next time dum is called. See https://github.com/yeoman/update-notifier#how

@xEgoist
Copy link
Author

xEgoist commented Mar 27, 2022

My apologies,
Thanks for the clarification. I think I understand the problem better now and would be able to implement that.

@xEgoist xEgoist closed this Jul 27, 2023
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.

Update checker
2 participants