deno upgrade

Created on 29 Feb 2020  路  4Comments  路  Source: denoland/deno

This is a new subcommand (which should be written entirely in Rust) that can download the newest deno executable.

Something like this:

  1. Check github for latest version
  2. Compare against current version
  3. If newer version exists, download newest into temp dir
  4. replace std::env::current_exe() with new.

Should not use github API. Use https://github.com/denoland/deno_install/blob/master/install.sh for guidance.

feat

Most helpful comment

@bartOssh go for it

All 4 comments

Talk about the problems encountered before

In Windows, after downloading a new Deno executable, the file cannot be replaced directly because the file is using by process

Solution:

rename executable to another name executable_old
and move executable_new to executable

There are already some Deno version management tools
https://github.com/axetroy/dvm
https://github.com/justjavac/dvm
https://github.com/imbsky/dvm

Is it possible that I can work on it ?

@bartOssh go for it

Done in #4328

Was this page helpful?
0 / 5 - 0 ratings

Related issues

JosephAkayesi picture JosephAkayesi  路  3Comments

justjavac picture justjavac  路  3Comments

CruxCv picture CruxCv  路  3Comments

motss picture motss  路  3Comments

kyeotic picture kyeotic  路  3Comments