SelfUpdate updates the devbox launcher and devbox CLI binary. It ignores and deletes the version cache. The launcher is a wrapper bash script introduced to manage the auto-update process for devbox. The production devbox application is actually this launcher script that acts as "devbox" and delegat
(stdOut, stdErr io.Writer)
| 101 | // for devbox. The production devbox application is actually this launcher script |
| 102 | // that acts as "devbox" and delegates commands to the devbox CLI binary. |
| 103 | func SelfUpdate(stdOut, stdErr io.Writer) error { |
| 104 | if isNewLauncherAvailable() { |
| 105 | return selfUpdateLauncher(stdOut, stdErr) |
| 106 | } |
| 107 | |
| 108 | return selfUpdateDevbox(stdErr) |
| 109 | } |
| 110 | |
| 111 | func selfUpdateLauncher(stdOut, stdErr io.Writer) error { |
| 112 | installScript := "" |
no test coverage detected