build: fixup resolvePaths for remote context path

Signed-off-by: Justin Chadwell <me@jedevc.com>
This commit is contained in:
Justin Chadwell
2023-03-28 16:11:52 +01:00
parent 3f59b27cf4
commit b5c6b3f10b
2 changed files with 10 additions and 3 deletions

View File

@ -35,6 +35,11 @@ func TestResolvePaths(t *testing.T) {
options: controllerapi.BuildOptions{ContextPath: "-"},
want: controllerapi.BuildOptions{ContextPath: "-"},
},
{
name: "contextpath-ssh",
options: controllerapi.BuildOptions{ContextPath: "git@github.com:docker/buildx.git"},
want: controllerapi.BuildOptions{ContextPath: "git@github.com:docker/buildx.git"},
},
{
name: "dockerfilename",
options: controllerapi.BuildOptions{DockerfileName: "test"},