MCPcopy Create free account
hub / github.com/conforma/cli / uniqueDestination

Function uniqueDestination

internal/policy/source/source.go:224–226  ·  view source on GitHub ↗
(rootDir string, subdir string, sourceUrl string)

Source from the content-addressed store, hash-verified

222}
223
224func uniqueDestination(rootDir string, subdir string, sourceUrl string) string {
225 return path.Join(rootDir, subdir, uniqueDir(sourceUrl))
226}
227
228// uniqueDir generates a reasonably unique string using an SHA224 sum
229func uniqueDir(input string) string {

Calls 1

uniqueDirFunction · 0.85