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:
parent
7484e51bf6
commit
d66208108d
1 changed files with 3 additions and 0 deletions
|
@ -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 (
|
||||||
|
|
Loading…
Reference in a new issue