You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Please, add a option to get the last binary version from command line.
Rclone is very useful to embed hardware, such as the Pi, and others.
It would be very handy to have a cron job to search for the last version and be safe that rclone will be always up to date across a network of embeds,
Sorry all. I was wrong when I closed this in favor of #3269. I can see now that that ticket actually requests automatic update feature. Sorry for noise. Reopening.
I decided to tackle this one earlier because I want to save time of rclone support team.
I see a lot of support questions here and on rclone forum when rclone support guys have to explain that author's rclone version is outdated, and copy-paste upgrade instructions.
I hope that one day this can be reduced to simply "please rerun your test after rclone self-update".
It may be a good idea to do more than just validate the hash for a (semi-)automatic update. Is it possible to sign the release and validate the signature? And then have the public key somewhere trustworthy? That would make me feel more comfortable about a self-updater. (Is this common practice?)
Your idea will need some support on the CI/CD side which will need time. I want to have self-update out ASAP, preferably in a month. This means we keep it simple at the moment. I propose to submit your idea as a new ticket (EDIT: and make it block on this one) so the team can address it later as an enhancement.
It may be a good idea to do more than just validate the hash for a (semi-)automatic update. Is it possible to sign the release and validate the signature?
Your idea will be implemented in 1.55 or 1.56 with some modifications:
rclone will have a PGP public key embedded in the binary
SHA256 hashsum file signature will be validated with the key
distribution archive of a stable release will be verified by SHA256 upon download in memory
new binary will be extracted on disk from memory right after validations
this holds for stable releases, betas (if explicitly requested) will not be verified
Activity
ncw commentedon Jun 28, 2016
Nice idea. Might be a bit of work. I wonder if there are any Go frameworks about to help?
ncw commentedon Jun 28, 2016
A bit of research comes up with
nagualcode commentedon Sep 17, 2016
I wish I could help you in here
ivandeex commentedon Nov 16, 2020
Duplicate of #3269ivandeex commentedon Nov 16, 2020
Merging #2867 into this one
ivandeex commentedon Feb 14, 2021
This ticket duplicates #3269 so merging in.ivandeex commentedon Feb 19, 2021
Sorry all. I was wrong when I closed this in favor of #3269. I can see now that that ticket actually requests automatic update feature. Sorry for noise. Reopening.
14 remaining items
ivandeex commentedon Feb 20, 2021
I'm not yet decided about two more options
--backupto backup previous executable with a timestamp--betato mimicinstall.sh -s betaEDIT:
--betawill be implemented as it seems simple.ivandeex commentedon Feb 20, 2021
I decided to tackle this one earlier because I want to save time of rclone support team.
I see a lot of support questions here and on rclone forum when rclone support guys have to explain that author's rclone version is outdated, and copy-paste upgrade instructions.
I hope that one day this can be reduced to simply "please rerun your test after
rclone self-update".ivandeex commentedon Feb 25, 2021
@ncw Could you make the CI/CD pipeline maintain a file like
stable-version.txt(in addition toversion.txt) on https://download.rclone.org ? This would unlock therclone self-update --stablefeatureEDIT (ivandeex)
This request and the next comment (hidden by me) will be factored into separate feature request #5076 to keep this one more focused.
ivandeex commentedon Feb 27, 2021
ivandeex commentedon Feb 27, 2021
@ncw do you think
rclone version --checkcan be made an alias forrclone self-update --check??Jwink3101 commentedon Feb 27, 2021
It may be a good idea to do more than just validate the hash for a (semi-)automatic update. Is it possible to sign the release and validate the signature? And then have the public key somewhere trustworthy? That would make me feel more comfortable about a self-updater. (Is this common practice?)
ivandeex commentedon Feb 27, 2021
Your idea will need some support on the CI/CD side which will need time. I want to have self-update out ASAP, preferably in a month. This means we keep it simple at the moment. I propose to submit your idea as a new ticket (EDIT: and make it block on this one) so the team can address it later as an enhancement.
ivandeex commentedon Mar 8, 2021
@Jwink3101
Your idea will be implemented in 1.55 or 1.56 with some modifications:
cmd: rclone selfupdate (#5080)
cmd: rclone selfupdate (rclone#5080)