浏览代码

Update make.ps1 to respect client repo

Signed-off-by: John Stephens <johnstep@docker.com>
John Stephens 8 年之前
父节点
当前提交
2bc6fffacb
共有 1 个文件被更改,包括 4 次插入3 次删除
  1. 4 3
      hack/make.ps1

+ 4 - 3
hack/make.ps1

@@ -397,12 +397,13 @@ Try {
         # Perform the actual build
         if ($Daemon) { Execute-Build "daemon" "daemon" "dockerd" }
         if ($Client) {
-            $dockerCliCommit=$(findstr DOCKERCLI_COMMIT hack\dockerfile\binaries-commits)
+            $dockerCliRepo = (findstr DOCKERCLI_REPO hack\dockerfile\binaries-commits).split("=")[1]
+            $dockerCliCommit = (findstr DOCKERCLI_COMMIT hack\dockerfile\binaries-commits).split("=")[1]
             Push-Location ..
             # TODO: check if cli folder exists already
-            git clone https://github.com/docker/cli
+            git clone $dockerCliRepo
             cd cli
-            git checkout $dockerCliCommit.split("=")[1]
+            git checkout $dockerCliCommit
             # TODO: update CI script to not assume binary is in docker/docker
             go build -o ..\docker\bundles\docker.exe github.com/docker/cli/cmd/docker
             Pop-Location