mirror of https://github.com/docker/compose.git
use github.com/hashicorp/go-uuid
Signed-off-by: Amine Chouki <amine.chouki@docker.com>
This commit is contained in:
parent
906e1b4305
commit
e16d0b48dd
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue