Switch to SHA256 as canonical digest

Also support client digests linking to canonical digest.
This commit is contained in:
Josh Hawn 2015-03-04 16:31:31 -08:00 committed by David Lawrence
parent 0233da8b35
commit 98daae176a
2 changed files with 26 additions and 34 deletions

View file

@ -232,12 +232,6 @@ func (pm *pathMapper) path(spec pathSpec) (string, error) {
return "", err
}
// For now, only map tarsum paths.
if components[0] != "tarsum" {
// Only tarsum is supported, for now
return "", fmt.Errorf("unsupported content digest: %v", v.digest)
}
layerLinkPathComponents := append(repoPrefix, v.name, "_layers")
return path.Join(path.Join(append(layerLinkPathComponents, components...)...), "link"), nil