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:
@@ -9,6 +9,9 @@ import (
|
||||
|
||||
"github.com/docker/distribution/version"
|
||||
"github.com/opencontainers/go-digest"
|
||||
|
||||
_ "crypto/sha256"
|
||||
_ "crypto/sha512"
|
||||
)
|
||||
|
||||
var (
|
||||
|
Reference in New Issue
Block a user