Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
| ... | ... |
@@ -13,7 +13,6 @@ test.main |
| 13 | 13 |
.editorconfig |
| 14 | 14 |
.gopath/ |
| 15 | 15 |
.go-pkg-cache/ |
| 16 |
-autogen/ |
|
| 17 | 16 |
bundles/ |
| 18 | 17 |
cli/winresources/**/winres.json |
| 19 | 18 |
cli/winresources/**/*.syso |
| ... | ... |
@@ -26,5 +25,3 @@ junit-report.xml |
| 26 | 26 |
|
| 27 | 27 |
# top-level go.mod is not meant to be checked in |
| 28 | 28 |
/go.mod |
| 29 |
-# workaround go.mod for autogen/winresources/dockerd |
|
| 30 |
-/hack/make/.resources-windows/go.mod |
| ... | ... |
@@ -168,6 +168,7 @@ SHELL ["powershell", "-Command", "$ErrorActionPreference = 'Stop'; $ProgressPref |
| 168 | 168 |
ARG GO_VERSION=1.18.0 |
| 169 | 169 |
ARG CONTAINERD_VERSION=1.6.2 |
| 170 | 170 |
ARG GOTESTSUM_VERSION=v1.7.0 |
| 171 |
+ARG GOWINRES_VERSION=v0.2.3 |
|
| 171 | 172 |
|
| 172 | 173 |
# Environment variable notes: |
| 173 | 174 |
# - GO_VERSION must be consistent with 'Dockerfile' used by Linux. |
| ... | ... |
@@ -179,7 +180,8 @@ ENV GO_VERSION=${GO_VERSION} `
|
| 179 | 179 |
GOPATH=C:\gopath ` |
| 180 | 180 |
GO111MODULE=off ` |
| 181 | 181 |
FROM_DOCKERFILE=1 ` |
| 182 |
- GOTESTSUM_VERSION=${GOTESTSUM_VERSION}
|
|
| 182 |
+ GOTESTSUM_VERSION=${GOTESTSUM_VERSION} `
|
|
| 183 |
+ GOWINRES_VERSION=${GOWINRES_VERSION}
|
|
| 183 | 184 |
|
| 184 | 185 |
RUN ` |
| 185 | 186 |
Function Test-Nano() { `
|
| ... | ... |
@@ -289,6 +291,22 @@ RUN ` |
| 289 | 289 |
` |
| 290 | 290 |
Install-GoTestSum |
| 291 | 291 |
|
| 292 |
+RUN ` |
|
| 293 |
+ Function Install-GoWinres() { `
|
|
| 294 |
+ $Env:GO111MODULE = 'on'; ` |
|
| 295 |
+ $tmpGobin = "${Env:GOBIN_TMP}"; `
|
|
| 296 |
+ $Env:GOBIN = """${Env:GOPATH}`\bin"""; `
|
|
| 297 |
+ Write-Host "INFO: Installing go-winres version $Env:GOWINRES_VERSION in $Env:GOBIN"; ` |
|
| 298 |
+ &go install "github.com/tc-hib/go-winres@${Env:GOWINRES_VERSION}"; `
|
|
| 299 |
+ $Env:GOBIN = "${tmpGobin}"; `
|
|
| 300 |
+ $Env:GO111MODULE = 'off'; ` |
|
| 301 |
+ if ($LASTEXITCODE -ne 0) { `
|
|
| 302 |
+ Throw '"go-winres install failed..."'; ` |
|
| 303 |
+ } ` |
|
| 304 |
+ } ` |
|
| 305 |
+ ` |
|
| 306 |
+ Install-GoWinres |
|
| 307 |
+ |
|
| 292 | 308 |
# Make PowerShell the default entrypoint |
| 293 | 309 |
ENTRYPOINT ["powershell.exe"] |
| 294 | 310 |
|
| ... | ... |
@@ -166,21 +166,14 @@ default: binary |
| 166 | 166 |
all: build ## validate all checks, build linux binaries, run all tests,\ncross build non-linux binaries, and generate archives |
| 167 | 167 |
$(DOCKER_RUN_DOCKER) bash -c 'hack/validate/default && hack/make.sh' |
| 168 | 168 |
|
| 169 |
-# This is only used to work around read-only bind mounts of the source code into |
|
| 170 |
-# binary build targets. We end up mounting a tmpfs over autogen which allows us |
|
| 171 |
-# to write build-time generated assets even though the source is mounted read-only |
|
| 172 |
-# ...But in order to do so, this dir needs to already exist. |
|
| 173 |
-autogen: |
|
| 174 |
- mkdir -p autogen |
|
| 175 |
- |
|
| 176 |
-binary: buildx autogen ## build statically linked linux binaries |
|
| 169 |
+binary: buildx ## build statically linked linux binaries |
|
| 177 | 170 |
$(BUILD_CMD) $(BUILD_OPTS) --output=bundles/ --target=$@ $(VERSION_AUTOGEN_ARGS) . |
| 178 | 171 |
|
| 179 |
-dynbinary: buildx autogen ## build dynamically linked linux binaries |
|
| 172 |
+dynbinary: buildx ## build dynamically linked linux binaries |
|
| 180 | 173 |
$(BUILD_CMD) $(BUILD_OPTS) --output=bundles/ --target=$@ $(VERSION_AUTOGEN_ARGS) . |
| 181 | 174 |
|
| 182 | 175 |
cross: BUILD_OPTS += --build-arg CROSS=true --build-arg DOCKER_CROSSPLATFORMS |
| 183 |
-cross: buildx autogen ## cross build the binaries for darwin, freebsd and\nwindows |
|
| 176 |
+cross: buildx ## cross build the binaries for darwin, freebsd and\nwindows |
|
| 184 | 177 |
$(BUILD_CMD) $(BUILD_OPTS) --output=bundles/ --target=$@ $(VERSION_AUTOGEN_ARGS) . |
| 185 | 178 |
|
| 186 | 179 |
bundles: |
| ... | ... |
@@ -551,14 +551,6 @@ Try {
|
| 551 | 551 |
Write-Host -ForegroundColor Magenta "WARN: Skipping building the binaries" |
| 552 | 552 |
} |
| 553 | 553 |
|
| 554 |
- Write-Host -ForegroundColor Green "INFO: Copying dockerversion from the container..." |
|
| 555 |
- $ErrorActionPreference = "SilentlyContinue" |
|
| 556 |
- docker cp "$contPath\..\dockerversion\version_autogen.go" "$env:SOURCES_DRIVE`:\$env:SOURCES_SUBDIR\src\github.com\docker\docker\dockerversion" |
|
| 557 |
- if (-not($LastExitCode -eq 0)) {
|
|
| 558 |
- Throw "ERROR: Failed to docker cp the generated version_autogen.go to $env:SOURCES_DRIVE`:\$env:SOURCES_SUBDIR\src\github.com\docker\docker\dockerversion" |
|
| 559 |
- } |
|
| 560 |
- $ErrorActionPreference = "Stop" |
|
| 561 |
- |
|
| 562 | 554 |
# Grab the golang installer out of the built image. That way, we know we are consistent once extracted and paths set, |
| 563 | 555 |
# so there's no need to re-deploy on account of an upgrade to the version of GO being used in docker. |
| 564 | 556 |
if ($null -eq $env:SKIP_COPY_GO) {
|
| ... | ... |
@@ -854,7 +846,6 @@ Try {
|
| 854 | 854 |
$c += "`"$env:INTEGRATION_TEST_NAME`" " |
| 855 | 855 |
Write-Host -ForegroundColor Magenta "WARN: Only running integration tests matching $env:INTEGRATION_TEST_NAME" |
| 856 | 856 |
} |
| 857 |
- $c += "`"-tags`" " + "`"autogen`" " |
|
| 858 | 857 |
$c += "`"-test.timeout`" " + "`"200m`" " |
| 859 | 858 |
|
| 860 | 859 |
if ($null -ne $env:INTEGRATION_IN_CONTAINER) {
|
| ... | ... |
@@ -168,9 +168,10 @@ Function Get-UpstreamCommit() {
|
| 168 | 168 |
} |
| 169 | 169 |
|
| 170 | 170 |
# Build a binary (client or daemon) |
| 171 |
-Function Execute-Build($type, $additionalBuildTags, $directory) {
|
|
| 171 |
+Function Execute-Build($type, $additionalBuildTags, $directory, $ldflags) {
|
|
| 172 | 172 |
# Generate the build flags |
| 173 |
- $buildTags = "autogen" |
|
| 173 |
+ $buildTags = "" |
|
| 174 |
+ $ldflags = "-linkmode=internal " + $ldflags |
|
| 174 | 175 |
if ($Noisy) { $verboseParm=" -v" }
|
| 175 | 176 |
if ($Race) { Write-Warning "Using race detector"; $raceParm=" -race"}
|
| 176 | 177 |
if ($ForceBuildAll) { $allParm=" -a" }
|
| ... | ... |
@@ -188,7 +189,7 @@ Function Execute-Build($type, $additionalBuildTags, $directory) {
|
| 188 | 188 |
$allParm + ` |
| 189 | 189 |
$optParm + ` |
| 190 | 190 |
" -tags """ + $buildTags + """" + ` |
| 191 |
- " -ldflags """ + "-linkmode=internal" + """" + ` |
|
| 191 |
+ " -ldflags """ + $ldflags + """" + ` |
|
| 192 | 192 |
" -o $root\bundles\"+$directory+".exe" |
| 193 | 193 |
Invoke-Expression $buildCommand |
| 194 | 194 |
if ($LASTEXITCODE -ne 0) { Throw "Failed to compile $type" }
|
| ... | ... |
@@ -427,13 +428,20 @@ Try {
|
| 427 | 427 |
# Verify GOPATH is set |
| 428 | 428 |
if ($env:GOPATH.Length -eq 0) { Throw "Missing GOPATH environment variable. See https://golang.org/doc/code.html#GOPATH" }
|
| 429 | 429 |
|
| 430 |
- # Run autogen if building binaries or running unit tests. |
|
| 431 |
- if ($Client -or $Daemon -or $TestUnit) {
|
|
| 430 |
+ # Run autogen if building daemon. |
|
| 431 |
+ if ($Daemon) {
|
|
| 432 | 432 |
Write-Host "INFO: Invoking autogen..." |
| 433 |
- Try { .\hack\make\.go-autogen.ps1 -CommitString $gitCommit -DockerVersion $dockerVersion -Platform "$env:PLATFORM" -Product "$env:PRODUCT" }
|
|
| 433 |
+ Try { .\hack\make\.go-autogen.ps1 -CommitString $gitCommit -DockerVersion $dockerVersion -Platform "$env:PLATFORM" -Product "$env:PRODUCT" -PackagerName "$env:PACKAGER_NAME" }
|
|
| 434 | 434 |
Catch [Exception] { Throw $_ }
|
| 435 | 435 |
} |
| 436 | 436 |
|
| 437 |
+ $ldflags = "-X 'github.com/docker/docker/dockerversion.Version="+$dockerVersion+"'" |
|
| 438 |
+ $ldflags += " -X 'github.com/docker/docker/dockerversion.GitCommit="+$gitCommit+"'" |
|
| 439 |
+ $ldflags += " -X 'github.com/docker/docker/dockerversion.BuildTime="+$env:BUILDTIME+"'" |
|
| 440 |
+ $ldflags += " -X 'github.com/docker/docker/dockerversion.PlatformName="+$env:PLATFORM+"'" |
|
| 441 |
+ $ldflags += " -X 'github.com/docker/docker/dockerversion.ProductName="+$env:PRODUCT+"'" |
|
| 442 |
+ $ldflags += " -X 'github.com/docker/docker/dockerversion.DefaultProductLicense="+$env:DEFAULT_PRODUCT_LICENSE+"'" |
|
| 443 |
+ |
|
| 437 | 444 |
# DCO, Package import and Go formatting tests. |
| 438 | 445 |
if ($DCO -or $PkgImports -or $GoFormat) {
|
| 439 | 446 |
# We need the head and upstream commits for these |
| ... | ... |
@@ -454,7 +462,7 @@ Try {
|
| 454 | 454 |
if ($Client -or $Daemon) {
|
| 455 | 455 |
|
| 456 | 456 |
# Perform the actual build |
| 457 |
- if ($Daemon) { Execute-Build "daemon" "daemon" "dockerd" }
|
|
| 457 |
+ if ($Daemon) { Execute-Build "daemon" "daemon" "dockerd" $ldflags }
|
|
| 458 | 458 |
if ($Client) {
|
| 459 | 459 |
# Get the Docker channel and version from the environment, or use the defaults. |
| 460 | 460 |
if (-not ($channel = $env:DOCKERCLI_CHANNEL)) { $channel = "stable" }
|
| ... | ... |
@@ -10,6 +10,22 @@ |
| 10 | 10 |
|
| 11 | 11 |
.PARAMETER DockerVersion |
| 12 | 12 |
The version such as 17.04.0-dev. This is calculated externally to this script. |
| 13 |
+ |
|
| 14 |
+.PARAMETER Platform |
|
| 15 |
+ The platform name, such as "Docker Engine - Community". |
|
| 16 |
+ |
|
| 17 |
+.PARAMETER Product |
|
| 18 |
+ The product name, used to set version.ProductName, which is used to set BuildKit's |
|
| 19 |
+ ExportedProduct variable in order to show useful error messages to users when a |
|
| 20 |
+ certain version of the product doesn't support a BuildKit feature. |
|
| 21 |
+ |
|
| 22 |
+.PARAMETER DefaultProductLicense |
|
| 23 |
+ Sets the version.DefaultProductLicense string, such as "Community Engine". This field |
|
| 24 |
+ can contain a summary of the product license of the daemon if a commercial license has |
|
| 25 |
+ been applied to the daemon. |
|
| 26 |
+ |
|
| 27 |
+.PARAMETER PackagerName |
|
| 28 |
+ The name of the packager (e.g. "Docker, Inc."). This used to set CompanyName in the manifest. |
|
| 13 | 29 |
#> |
| 14 | 30 |
|
| 15 | 31 |
param( |
| ... | ... |
@@ -17,7 +33,8 @@ param( |
| 17 | 17 |
[Parameter(Mandatory=$true)][string]$DockerVersion, |
| 18 | 18 |
[Parameter(Mandatory=$false)][string]$Platform, |
| 19 | 19 |
[Parameter(Mandatory=$false)][string]$Product, |
| 20 |
- [Parameter(Mandatory=$false)][string]$DefaultProductLicense |
|
| 20 |
+ [Parameter(Mandatory=$false)][string]$DefaultProductLicense, |
|
| 21 |
+ [Parameter(Mandatory=$false)][string]$PackagerName |
|
| 21 | 22 |
) |
| 22 | 23 |
|
| 23 | 24 |
$ErrorActionPreference = "Stop" |
| ... | ... |
@@ -27,63 +44,109 @@ Function Get-BuildDateTime() {
|
| 27 | 27 |
return $(Get-Date).ToUniversalTime() |
| 28 | 28 |
} |
| 29 | 29 |
|
| 30 |
-try {
|
|
| 31 |
- $buildDateTime=Get-BuildDateTime |
|
| 30 |
+Function Get-Year() {
|
|
| 31 |
+ return $(Get-Date).year |
|
| 32 |
+} |
|
| 32 | 33 |
|
| 33 |
- if (Test-Path ".\autogen") {
|
|
| 34 |
- Remove-Item ".\autogen" -Recurse -Force | Out-Null |
|
| 34 |
+Function Get-FixQuadVersionNumber($number) {
|
|
| 35 |
+ if ($number -eq 0) {
|
|
| 36 |
+ return $number |
|
| 35 | 37 |
} |
| 38 |
+ return $number.TrimStart("0")
|
|
| 39 |
+} |
|
| 36 | 40 |
|
| 37 |
- $fileContents = ' |
|
| 38 |
-// +build autogen |
|
| 39 |
- |
|
| 40 |
-// Package dockerversion is auto-generated at build-time |
|
| 41 |
-package dockerversion |
|
| 42 |
- |
|
| 43 |
-// Default build-time variable for library-import. |
|
| 44 |
-// This file is overridden on build with build-time information. |
|
| 45 |
-const ( |
|
| 46 |
- GitCommit string = "'+$CommitString+'" |
|
| 47 |
- Version string = "'+$DockerVersion+'" |
|
| 48 |
- BuildTime string = "'+$buildDateTime+'" |
|
| 49 |
- PlatformName string = "'+$Platform+'" |
|
| 50 |
- ProductName string = "'+$Product+'" |
|
| 51 |
- DefaultProductLicense string = "'+$DefaultProductLicense+'" |
|
| 52 |
-) |
|
| 53 |
- |
|
| 54 |
-// AUTOGENERATED FILE; see hack\make\.go-autogen.ps1 |
|
| 55 |
-' |
|
| 56 |
- |
|
| 57 |
- # Write the file without BOM |
|
| 58 |
- $outputFile="$(Get-Location)\dockerversion\version_autogen.go" |
|
| 59 |
- if (Test-Path $outputFile) { Remove-Item $outputFile }
|
|
| 60 |
- [System.IO.File]::WriteAllText($outputFile, $fileContents, (New-Object System.Text.UTF8Encoding($False))) |
|
| 41 |
+try {
|
|
| 42 |
+ $buildDateTime=Get-BuildDateTime |
|
| 43 |
+ $currentYear=Get-Year |
|
| 61 | 44 |
|
| 62 |
- New-Item -ItemType Directory -Path "autogen\winresources\tmp" | Out-Null |
|
| 63 |
- New-Item -ItemType Directory -Path "autogen\winresources\dockerd" | Out-Null |
|
| 64 |
- Copy-Item "hack\make\.resources-windows\resources.go" "autogen\winresources\dockerd" |
|
| 45 |
+ # Update PATH |
|
| 46 |
+ $env:PATH="$env:GOPATH\bin;$env:PATH" |
|
| 65 | 47 |
|
| 66 | 48 |
# Generate a version in the form major,minor,patch,build |
| 67 |
- $versionQuad=$DockerVersion -replace "[^0-9.]*" -replace "\.", "," |
|
| 49 |
+ $versionQuad=($DockerVersion -replace "[^0-9.]*") |
|
| 50 |
+ if ($versionQuad -Match "^\d+`.\d+`.\d+$"){
|
|
| 51 |
+ $versionQuad = $versionQuad + ".0" |
|
| 52 |
+ } |
|
| 53 |
+ $versionMatches = $($versionQuad | Select-String -AllMatches -Pattern "(\d+)`.(\d+)`.(\d+)`.(\d+)").Matches |
|
| 68 | 54 |
|
| 69 |
- # Compile the messages |
|
| 70 |
- windmc hack\make\.resources-windows\event_messages.mc -h autogen\winresources\tmp -r autogen\winresources\tmp |
|
| 71 |
- if ($LASTEXITCODE -ne 0) { Throw "Failed to compile event message resources" }
|
|
| 55 |
+ $mkwinresContents = '{
|
|
| 56 |
+ "RT_GROUP_ICON": {
|
|
| 57 |
+ "#1": {
|
|
| 58 |
+ "0409": "../../winresources/docker.ico" |
|
| 59 |
+ } |
|
| 60 |
+ }, |
|
| 61 |
+ "RT_MANIFEST": {
|
|
| 62 |
+ "#1": {
|
|
| 63 |
+ "0409": {
|
|
| 64 |
+ "identity": {},
|
|
| 65 |
+ "description": "Docker Engine", |
|
| 66 |
+ "minimum-os": "vista", |
|
| 67 |
+ "execution-level": "", |
|
| 68 |
+ "ui-access": false, |
|
| 69 |
+ "auto-elevate": false, |
|
| 70 |
+ "dpi-awareness": "unaware", |
|
| 71 |
+ "disable-theming": false, |
|
| 72 |
+ "disable-window-filtering": false, |
|
| 73 |
+ "high-resolution-scrolling-aware": false, |
|
| 74 |
+ "ultra-high-resolution-scrolling-aware": false, |
|
| 75 |
+ "long-path-aware": false, |
|
| 76 |
+ "printer-driver-isolation": false, |
|
| 77 |
+ "gdi-scaling": false, |
|
| 78 |
+ "segment-heap": false, |
|
| 79 |
+ "use-common-controls-v6": false |
|
| 80 |
+ } |
|
| 81 |
+ } |
|
| 82 |
+ }, |
|
| 83 |
+ "RT_MESSAGETABLE": {
|
|
| 84 |
+ "#1": {
|
|
| 85 |
+ "0409": "../../winresources/event_messages.bin" |
|
| 86 |
+ } |
|
| 87 |
+ }, |
|
| 88 |
+ "RT_VERSION": {
|
|
| 89 |
+ "#1": {
|
|
| 90 |
+ "0409": {
|
|
| 91 |
+ "fixed": {
|
|
| 92 |
+ "file_version": "'+(Get-FixQuadVersionNumber($versionMatches.Groups[1].Value))+'.'+(Get-FixQuadVersionNumber($versionMatches.Groups[2].Value))+'.'+(Get-FixQuadVersionNumber($versionMatches.Groups[3].Value))+'.'+(Get-FixQuadVersionNumber($versionMatches.Groups[4].Value))+'", |
|
| 93 |
+ "product_version": "'+(Get-FixQuadVersionNumber($versionMatches.Groups[1].Value))+'.'+(Get-FixQuadVersionNumber($versionMatches.Groups[2].Value))+'.'+(Get-FixQuadVersionNumber($versionMatches.Groups[3].Value))+'.'+(Get-FixQuadVersionNumber($versionMatches.Groups[4].Value))+'", |
|
| 94 |
+ "type": "Unknown" |
|
| 95 |
+ }, |
|
| 96 |
+ "info": {
|
|
| 97 |
+ "0000": {
|
|
| 98 |
+ "CompanyName": "'+$PackagerName+'", |
|
| 99 |
+ "FileVersion": "'+$DockerVersion+'", |
|
| 100 |
+ "LegalCopyright": "Copyright (C) 2015-'+$currentYear+' Docker Inc.", |
|
| 101 |
+ "OriginalFileName": "dockerd.exe", |
|
| 102 |
+ "ProductName": "'+$Product+'", |
|
| 103 |
+ "ProductVersion": "'+$DockerVersion+'", |
|
| 104 |
+ "SpecialBuild": "'+$CommitString+'" |
|
| 105 |
+ } |
|
| 106 |
+ } |
|
| 107 |
+ } |
|
| 108 |
+ } |
|
| 109 |
+ } |
|
| 110 |
+}' |
|
| 72 | 111 |
|
| 73 |
- # If you really want to understand this madness below, search the Internet for powershell variables after verbatim arguments... Needed to get double-quotes passed through to the compiler options. |
|
| 74 |
- # Generate the .syso files containing all the resources and manifest needed to compile the final docker binaries. Both 32 and 64-bit clients. |
|
| 75 |
- $env:_ag_dockerVersion=$DockerVersion |
|
| 76 |
- $env:_ag_gitCommit=$CommitString |
|
| 112 |
+ # Write the file |
|
| 113 |
+ $outputFile="$(Get-Location)\cli\winresources\dockerd\winres.json" |
|
| 114 |
+ if (Test-Path $outputFile) { Remove-Item $outputFile }
|
|
| 115 |
+ [System.IO.File]::WriteAllText($outputFile, $mkwinresContents) |
|
| 116 |
+ Get-Content $outputFile | Out-Host |
|
| 117 |
+ |
|
| 118 |
+ # Create winresources package stub if removed while using tmpfs in Dockerfile |
|
| 119 |
+ $stubPackage="$(Get-Location)\cli\winresources\dockerd\winresources.go" |
|
| 120 |
+ if(![System.IO.File]::Exists($stubPackage)){
|
|
| 121 |
+ Set-Content -NoNewline -Path $stubPackage -Value 'package winresources' |
|
| 122 |
+ } |
|
| 77 | 123 |
|
| 78 |
- windres -i hack/make/.resources-windows/dockerd.rc -o autogen/winresources/dockerd/rsrc_amd64.syso -F pe-x86-64 --use-temp-file -I autogen/winresources/tmp -D DOCKER_VERSION_QUAD=$versionQuad --% -D DOCKER_VERSION=\"%_ag_dockerVersion%\" -D DOCKER_COMMIT=\"%_ag_gitCommit%\" |
|
| 79 |
- if ($LASTEXITCODE -ne 0) { Throw "Failed to compile daemon resources" }
|
|
| 124 |
+ # Generate |
|
| 125 |
+ go generate -v "github.com/docker/docker/cmd/dockerd" |
|
| 126 |
+ if ($LASTEXITCODE -ne 0) { Throw "Failed to generate version info" }
|
|
| 80 | 127 |
} |
| 81 | 128 |
Catch [Exception] {
|
| 82 | 129 |
# Throw the error onto the caller to display errors. We don't expect this script to be called directly |
| 83 | 130 |
Throw ".go-autogen.ps1 failed with error $_" |
| 84 | 131 |
} |
| 85 | 132 |
Finally {
|
| 86 |
- Remove-Item .\autogen\winresources\tmp -Recurse -Force -ErrorAction SilentlyContinue | Out-Null |
|
| 87 | 133 |
$env:_ag_dockerVersion="" |
| 88 | 134 |
$env:_ag_gitCommit="" |
| 89 | 135 |
} |
| ... | ... |
@@ -26,7 +26,6 @@ require ( |
| 26 | 26 |
github.com/creack/pty v1.1.11 |
| 27 | 27 |
github.com/deckarep/golang-set v0.0.0-20141123011944-ef32fa3046d9 |
| 28 | 28 |
github.com/docker/distribution v2.8.1+incompatible |
| 29 |
- github.com/docker/docker/autogen/winresources/dockerd v0.0.0-00010101000000-000000000000 |
|
| 30 | 29 |
github.com/docker/go-connections v0.4.0 |
| 31 | 30 |
github.com/docker/go-events v0.0.0-20190806004212-e31b211e4f1c |
| 32 | 31 |
github.com/docker/go-metrics v0.0.1 |
| ... | ... |
@@ -185,6 +184,3 @@ replace ( |
| 185 | 185 |
|
| 186 | 186 |
// Removes etcd dependency |
| 187 | 187 |
replace github.com/rexray/gocsi => github.com/dperny/gocsi v1.2.3-pre |
| 188 |
- |
|
| 189 |
-// autogen/winresources/dockerd is generated a build time, this replacement is only for the purpose of `go mod vendor` |
|
| 190 |
-replace github.com/docker/docker/autogen/winresources/dockerd => ./hack/make/.resources-windows |
| ... | ... |
@@ -284,9 +284,6 @@ github.com/docker/distribution/registry/client/auth/challenge |
| 284 | 284 |
github.com/docker/distribution/registry/client/transport |
| 285 | 285 |
github.com/docker/distribution/registry/storage/cache |
| 286 | 286 |
github.com/docker/distribution/registry/storage/cache/memory |
| 287 |
-# github.com/docker/docker/autogen/winresources/dockerd v0.0.0-00010101000000-000000000000 => ./hack/make/.resources-windows |
|
| 288 |
-## explicit; go 1.17 |
|
| 289 |
-github.com/docker/docker/autogen/winresources/dockerd |
|
| 290 | 287 |
# github.com/docker/go-connections v0.4.0 |
| 291 | 288 |
## explicit |
| 292 | 289 |
github.com/docker/go-connections/nat |
| ... | ... |
@@ -1132,4 +1129,3 @@ gotest.tools/v3/skip |
| 1132 | 1132 |
# github.com/vishvananda/netlink => github.com/vishvananda/netlink v1.1.0 |
| 1133 | 1133 |
# go.opencensus.io => go.opencensus.io v0.22.3 |
| 1134 | 1134 |
# github.com/rexray/gocsi => github.com/dperny/gocsi v1.2.3-pre |
| 1135 |
-# github.com/docker/docker/autogen/winresources/dockerd => ./hack/make/.resources-windows |