From e16d0b48ddac77ca399e5138441ac3ebb291677c Mon Sep 17 00:00:00 2001 From: Amine Chouki Date: Thu, 22 Jul 2021 16:46:27 -0400 Subject: [PATCH] use github.com/hashicorp/go-uuid Signed-off-by: Amine Chouki --- pkg/utils/pat_suggest.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/utils/pat_suggest.go b/pkg/utils/pat_suggest.go index 6bf1a9948..1574a7f06 100644 --- a/pkg/utils/pat_suggest.go +++ b/pkg/utils/pat_suggest.go @@ -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) {