-
Notifications
You must be signed in to change notification settings - Fork 0
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
Usage of go-rocket-update #42
Comments
Hi @mouuff Thanks for reaching out and taking the time to review the code. I will be sure to refactor this so I check the code of The one thing I did notice, which makes it quite difficult for testing. Is that you will notice I am setting the clients provider in the update function, see below. Lines 57 to 60 in 1e2191c
This is because I am unable to retrieve the latest version at runtime (as opposed to initialization). It would be great to pass in the archive name in the Hope that makes sense. FYI, we're looking for contributiors for Verbis! I saw you forked it, would love to know your thoughts, or if you have time to help contribute. |
Hello, Thanks for the feedback, it is indeed something that could be a little easier. However, I can think of a few other solutions for you:
I think the first one is pretty easy to put in place, I will try to find some time to do that. |
Hello,
While you are using
updater.Update()
you are checking if the status isUpToDate
only if an error have been returned:verbis/api/sys/update.go
Lines 62 to 74 in 1e2191c
This will never happen because if the application is
UpToDate
then the updater will not return any error.An error will only be returned when something bad happens, (for example: you are offline and cannot check for an update)
Also, you don't need to call
Rollback()
yourself, unless you want to rollback after successful update. (for example if you are doing an additional check by yourself to see if it is installed correctly)The project is smart enough to rollback by itself if something bad happens during the installation :)
I hope you like the
go-rocket-update
project.Don't hesitate to reach out. I will try to support everyone who is trying to adopt this library :)
Regards
The text was updated successfully, but these errors were encountered: