MCPcopy Create free account
hub / github.com/MiniCodeMonkey/chief / CheckVersionForServe

Function CheckVersionForServe

internal/cmd/update.go:63–72  ·  view source on GitHub ↗

CheckVersionForServe performs a version check and returns the result for use by the serve command.

(version, releasesURL string)

Source from the content-addressed store, hash-verified

61
62// CheckVersionForServe performs a version check and returns the result for use by the serve command.
63func CheckVersionForServe(version, releasesURL string) *update.CheckResult {
64 result, err := update.CheckForUpdate(version, update.Options{
65 ReleasesURL: releasesURL,
66 })
67 if err != nil {
68 log.Printf("Version check failed: %v", err)
69 return nil
70 }
71 return result
72}

Calls 1

CheckForUpdateFunction · 0.92