MCPcopy Create free account
hub / github.com/celer-pkg/celer / meta2hash

Method meta2hash

configs/port_pkgcache.go:77–80  ·  view source on GitHub ↗
(metaData string)

Source from the content-addressed store, hash-verified

75}
76
77func (p Port) meta2hash(metaData string) string {
78 checksum := sha256.Sum256([]byte(metaData))
79 return fmt.Sprintf("%x", checksum)
80}
81
82func (p Port) buildMeta() (string, error) {
83 // Try find prebuilt meta from cache first.

Callers 2

doInstallFromSourceMethod · 0.95
buildhashMethod · 0.95

Calls 1

SprintfMethod · 0.80

Tested by

no test coverage detected