MCPcopy Create free account
hub / github.com/Thunder-Compute/thunder-cli / runSelfUpdate

Function runSelfUpdate

cmd/root.go:423–432  ·  view source on GitHub ↗
(ctx context.Context, res updatepolicy.Result)

Source from the content-addressed store, hash-verified

421}
422
423func runSelfUpdate(ctx context.Context, res updatepolicy.Result) error {
424 source := autoupdate.Source{
425 Version: res.LatestVersion,
426 ReleaseTag: releaseTag(res),
427 AssetURL: res.AssetURL,
428 Checksum: res.ExpectedSHA256,
429 ChecksumURL: res.ChecksumURL,
430 }
431 return autoupdate.PerformUpdate(ctx, source)
432}
433
434func releaseTag(res updatepolicy.Result) string {
435 tag := res.LatestTag

Callers 3

handleMandatoryUpdateFunction · 0.85
handleOptionalUpdateFunction · 0.85

Calls 2

PerformUpdateFunction · 0.92
releaseTagFunction · 0.85

Tested by

no test coverage detected