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

Function Check

internal/update/update.go:56–73  ·  view source on GitHub ↗

Check reports whether the local binary's sha256 differs from the remote asset's recorded hash. ctx propagates a startup Ctrl+C into the HTTP request. Returns false on any failure; see package doc.

(ctx context.Context, execPath string)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 4

maybeSelfUpdateFunction · 0.92
TestCheckReportsUpToDateFunction · 0.85
TestCheckReportsStaleFunction · 0.85

Calls 3

assetNameFunction · 0.85
hashFileFunction · 0.85
fetchHashFunction · 0.85

Tested by 3

TestCheckReportsUpToDateFunction · 0.68
TestCheckReportsStaleFunction · 0.68