Browse code

Fix windows

Signed-off-by: Tibor Vass <tibor@docker.com>

Tibor Vass authored on 2017/12/07 06:02:30
Showing 2 changed files
... ...
@@ -365,7 +365,7 @@ Try {
365 365
     # Run autogen if building binaries or running unit tests.
366 366
     if ($Client -or $Daemon -or $TestUnit) {
367 367
         Write-Host "INFO: Invoking autogen..."
368
-        Try { .\hack\make\.go-autogen.ps1 -CommitString $gitCommit -DockerVersion $dockerVersion }
368
+        Try { .\hack\make\.go-autogen.ps1 -CommitString $gitCommit -DockerVersion $dockerVersion -Platform "$env:PLATFORM" }
369 369
         Catch [Exception] { Throw $_ }
370 370
     }
371 371
 
... ...
@@ -14,7 +14,8 @@
14 14
 
15 15
 param(
16 16
     [Parameter(Mandatory=$true)][string]$CommitString,
17
-    [Parameter(Mandatory=$true)][string]$DockerVersion
17
+    [Parameter(Mandatory=$true)][string]$DockerVersion,
18
+    [Parameter(Mandatory=$false)][string]$Platform
18 19
 )
19 20
 
20 21
 $ErrorActionPreference = "Stop"
... ...
@@ -43,6 +44,7 @@ const (
43 43
     GitCommit          string = "'+$CommitString+'"
44 44
     Version            string = "'+$DockerVersion+'"
45 45
     BuildTime          string = "'+$buildDateTime+'"
46
+    PlatformName       string = "'+$Platform+'"
46 47
 )
47 48
 
48 49
 // AUTOGENERATED FILE; see hack\make\.go-autogen.ps1