Remove uses of deprecated go-digest.NewDigestFromHex, go-digest.Digest.Hex
Both of these were deprecated in 55f675811a,
but the format of the GoDoc comments didn't follow the correct format, which
caused them not being picked up by tools as "deprecated".
This patch updates uses in the codebase to use the alternatives.
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
@@ -40,7 +40,7 @@ func checkBlobPath(dgst digest.Digest, root string) error {
|
||||
if err := dgst.Validate(); err != nil {
|
||||
return err
|
||||
}
|
||||
path := filepath.Join(root, "blobs", dgst.Algorithm().String(), dgst.Hex())
|
||||
path := filepath.Join(root, "blobs", dgst.Algorithm().String(), dgst.Encoded())
|
||||
_, err := os.Stat(path)
|
||||
if err != nil {
|
||||
return err
|
||||
|
||||
Reference in New Issue
Block a user