From 75c1f6c3a48d3f63a7d3bf116dc17664ea1c8b33 Mon Sep 17 00:00:00 2001 From: IJKZEN Date: Fri, 24 Nov 2023 22:52:13 +0800 Subject: [PATCH 1/2] Fix error when login with email --- docker.go | 3 --- 1 file changed, 3 deletions(-) diff --git a/docker.go b/docker.go index 475c2d85..05e82482 100644 --- a/docker.go +++ b/docker.go @@ -272,9 +272,6 @@ func (p Plugin) Exec() error { // helper function to create the docker login command. func commandLogin(login Login) *exec.Cmd { - if login.Email != "" { - return commandLoginEmail(login) - } return exec.Command( dockerExe, "login", "-u", login.Username, From 060b77f7dfa48c85d18252d47bb604d9a5dd3ce4 Mon Sep 17 00:00:00 2001 From: IJKZEN Date: Fri, 24 Nov 2023 22:56:53 +0800 Subject: [PATCH 2/2] Delete unused function --- docker.go | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/docker.go b/docker.go index 05e82482..5a40a916 100644 --- a/docker.go +++ b/docker.go @@ -300,16 +300,6 @@ func commandPull(repo string) *exec.Cmd { return exec.Command(dockerExe, "pull", repo) } -func commandLoginEmail(login Login) *exec.Cmd { - return exec.Command( - dockerExe, "login", - "-u", login.Username, - "-p", login.Password, - "-e", login.Email, - login.Registry, - ) -} - // helper function to create the docker info command. func commandVersion() *exec.Cmd { return exec.Command(dockerExe, "version")