MCPcopy Create free account
hub / github.com/codehamr/codehamr / maybeSelfUpdate

Function maybeSelfUpdate

cmd/codehamr/main.go:163–200  ·  view source on GitHub ↗

maybeSelfUpdate runs the pre-launch auto-update. No-op for local builds, an already-current hash, an unsupported platform (see update.assetName), or any network/filesystem refusal. On success it swaps the binary and re-execs via reExec (which only returns on failure). Any failure past "update availa

()

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

mainFunction · 0.85

Calls 4

CheckFunction · 0.92
ApplyFunction · 0.92
isLocalBuildFunction · 0.85
reExecFunction · 0.70

Tested by

no test coverage detected