1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00

Fix windows

Signed-off-by: Tibor Vass <tibor@docker.com>
This commit is contained in:
Tibor Vass 2017-12-06 22:02:30 +01:00
parent 87ebfa11f6
commit cb8283a6e9
2 changed files with 4 additions and 2 deletions

View file

@ -365,7 +365,7 @@ Try {
# Run autogen if building binaries or running unit tests. # Run autogen if building binaries or running unit tests.
if ($Client -or $Daemon -or $TestUnit) { if ($Client -or $Daemon -or $TestUnit) {
Write-Host "INFO: Invoking autogen..." Write-Host "INFO: Invoking autogen..."
Try { .\hack\make\.go-autogen.ps1 -CommitString $gitCommit -DockerVersion $dockerVersion } Try { .\hack\make\.go-autogen.ps1 -CommitString $gitCommit -DockerVersion $dockerVersion -Platform "$env:PLATFORM" }
Catch [Exception] { Throw $_ } Catch [Exception] { Throw $_ }
} }

View file

@ -14,7 +14,8 @@
param( param(
[Parameter(Mandatory=$true)][string]$CommitString, [Parameter(Mandatory=$true)][string]$CommitString,
[Parameter(Mandatory=$true)][string]$DockerVersion [Parameter(Mandatory=$true)][string]$DockerVersion,
[Parameter(Mandatory=$false)][string]$Platform
) )
$ErrorActionPreference = "Stop" $ErrorActionPreference = "Stop"
@ -43,6 +44,7 @@ const (
GitCommit string = "'+$CommitString+'" GitCommit string = "'+$CommitString+'"
Version string = "'+$DockerVersion+'" Version string = "'+$DockerVersion+'"
BuildTime string = "'+$buildDateTime+'" BuildTime string = "'+$buildDateTime+'"
PlatformName string = "'+$Platform+'"
) )
// AUTOGENERATED FILE; see hack\make\.go-autogen.ps1 // AUTOGENERATED FILE; see hack\make\.go-autogen.ps1