cmd/digest: import crypto algorithms

the digest cli does not work if we do not import this two packages,
tested in go1.9. basically, we have to make several algorithms to
be available by calling crypto.RegisterHash in init functions.

Signed-off-by: zhouhaibing089 <zhouhaibing089@gmail.com>
This commit is contained in:
zhouhaibing089 2017-10-14 12:31:21 +08:00
parent 7484e51bf6
commit d66208108d

View file

@ -9,6 +9,9 @@ import (
"github.com/docker/distribution/version" "github.com/docker/distribution/version"
"github.com/opencontainers/go-digest" "github.com/opencontainers/go-digest"
_ "crypto/sha256"
_ "crypto/sha512"
) )
var ( var (