summaryrefslogtreecommitdiff
path: root/layer/migration.go
diff options
context:
space:
mode:
authorStephen J Day <stephen.day@docker.com>2017-01-06 17:23:18 -0800
committerStephen J Day <stephen.day@docker.com>2017-01-06 18:48:41 -0800
commit7a855799175b6b984886ef1cfa337d6df1d4c668 (patch)
tree62d4b5d40dfe8ec4f68e5f496fcb7e03d5383d11 /layer/migration.go
parentfad6db4465d6c30f380e3d6638377ced1202116c (diff)
downloaddocker-7a855799175b6b984886ef1cfa337d6df1d4c668.tar.gz
*: use opencontainers/go-digest package
The `digest` data type, used throughout docker for image verification and identity, has been broken out into `opencontainers/go-digest`. This PR updates the dependencies and moves uses over to the new type. Signed-off-by: Stephen J Day <stephen.day@docker.com>
Diffstat (limited to 'layer/migration.go')
-rw-r--r--layer/migration.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/layer/migration.go b/layer/migration.go
index b45c31099d..4803a1ae56 100644
--- a/layer/migration.go
+++ b/layer/migration.go
@@ -8,7 +8,7 @@ import (
"os"
"github.com/Sirupsen/logrus"
- "github.com/docker/distribution/digest"
+ "github.com/opencontainers/go-digest"
"github.com/vbatts/tar-split/tar/asm"
"github.com/vbatts/tar-split/tar/storage"
)
@@ -98,7 +98,7 @@ func (ls *layerStore) ChecksumForGraphID(id, parent, oldTarDataPath, newTarDataP
return
}
- dgst := digest.Canonical.New()
+ dgst := digest.Canonical.Digester()
err = ls.assembleTarTo(id, uncompressed, &size, dgst.Hash())
if err != nil {
return