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>master
							parent
							
								
									7484e51bf6
								
							
						
					
					
						commit
						d66208108d
					
				|  | @ -9,6 +9,9 @@ import ( | |||
| 
 | ||||
| 	"github.com/docker/distribution/version" | ||||
| 	"github.com/opencontainers/go-digest" | ||||
| 
 | ||||
| 	_ "crypto/sha256" | ||||
| 	_ "crypto/sha512" | ||||
| ) | ||||
| 
 | ||||
| var ( | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue