summaryrefslogtreecommitdiff
path: root/testutil
diff options
context:
space:
mode:
authorSebastiaan van Stijn <github@gone.nl>2022-11-08 16:42:13 +0100
committerSebastiaan van Stijn <github@gone.nl>2022-11-08 16:42:13 +0100
commit0f7c9cd27e37bab1a89f3b341ef7e88e09a3fb97 (patch)
tree87825511bacf363681aa42aac8061f1d6a9eb39a /testutil
parent4f3c5b2568c28a4e0fd1b69ec6f2e0a0715d8cf5 (diff)
downloaddocker-0f7c9cd27e37bab1a89f3b341ef7e88e09a3fb97.tar.gz
Remove uses of deprecated go-digest.NewDigestFromHex, go-digest.Digest.Hex
Both of these were deprecated in https://github.com/opencontainers/go-digest/commit/55f675811a1b915549933c64571fd86b2676ba76, 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>
Diffstat (limited to 'testutil')
-rw-r--r--testutil/registry/registry.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/testutil/registry/registry.go b/testutil/registry/registry.go
index 5de61620c0..9213db2ba2 100644
--- a/testutil/registry/registry.go
+++ b/testutil/registry/registry.go
@@ -171,7 +171,7 @@ func (r *V2) Close() {
func (r *V2) getBlobFilename(blobDigest digest.Digest) string {
// Split the digest into its algorithm and hex components.
- dgstAlg, dgstHex := blobDigest.Algorithm(), blobDigest.Hex()
+ dgstAlg, dgstHex := blobDigest.Algorithm(), blobDigest.Encoded()
// The path to the target blob data looks something like:
// baseDir + "docker/registry/v2/blobs/sha256/a3/a3ed...46d4/data"