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:
parent
87ebfa11f6
commit
cb8283a6e9
2 changed files with 4 additions and 2 deletions
|
@ -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 $_ }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue