use github.com/hashicorp/go-uuid

Signed-off-by: Amine Chouki <amine.chouki@docker.com>
This commit is contained in:
Amine Chouki 2021-07-22 16:46:27 -04:00
parent 906e1b4305
commit e16d0b48dd
1 changed files with 2 additions and 2 deletions

View File

@ -23,7 +23,7 @@ import (
"github.com/docker/cli/cli/config"
"github.com/docker/docker/registry"
"github.com/google/uuid"
"github.com/hashicorp/go-uuid"
)
const (
@ -65,7 +65,7 @@ func isUsingDefaultRegistry(cmdArgs []string) bool {
}
func isUsingPassword(pass string) bool {
if _, err := uuid.Parse(pass); err == nil {
if _, err := uuid.ParseUUID(pass); err == nil {
return false
}
if strings.HasPrefix(pass, patPrefix) {