MCPcopy Create free account
hub / github.com/jetify-com/devbox / SelfUpdate

Function SelfUpdate

internal/vercheck/vercheck.go:103–109  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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.
103func SelfUpdate(stdOut, stdErr io.Writer) error {
104 if isNewLauncherAvailable() {
105 return selfUpdateLauncher(stdOut, stdErr)
106 }
107
108 return selfUpdateDevbox(stdErr)
109}
110
111func selfUpdateLauncher(stdOut, stdErr io.Writer) error {
112 installScript := ""

Callers 1

selfUpdateCmdFunction · 0.92

Calls 3

isNewLauncherAvailableFunction · 0.85
selfUpdateLauncherFunction · 0.85
selfUpdateDevboxFunction · 0.85

Tested by

no test coverage detected