From 09a7efb1f7479c8c179eedfc9f1e648f9b210234 Mon Sep 17 00:00:00 2001 From: Sebastiaan van Stijn Date: Mon, 17 May 2021 15:24:53 +0200 Subject: [PATCH] hack/ci/windows.ps1: disable go modules INFO: Running integration tests at 05/17/2021 12:54:50... INFO: DOCKER_HOST at tcp://127.0.0.1:2357 INFO: Integration API tests being run from the host: INFO: make.ps1 starting at 05/17/2021 12:54:50 powershell.exe : go: cannot find main module, but found vendor.conf in D:\gopath\src\github.com\docker\docker At D:\gopath\src\github.com\docker\docker@tmp\durable-1ed00396\powershellWrapper.ps1:3 char:1 + & powershell -NoProfile -NonInteractive -ExecutionPolicy Bypass -Comm ... + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : NotSpecified: (go: cannot find...m\docker\docker:String) [], RemoteException + FullyQualifiedErrorId : NativeCommandError to create a module there, run: go mod init INFO: make.ps1 ended at 05/17/2021 12:54:51 Signed-off-by: Sebastiaan van Stijn (cherry picked from commit 8bae2278ba79a4bd37841edd204b9399638e65d9) Signed-off-by: Sebastiaan van Stijn --- hack/ci/windows.ps1 | 1 + 1 file changed, 1 insertion(+) diff --git a/hack/ci/windows.ps1 b/hack/ci/windows.ps1 index fe166e9bb7..bc58bd858b 100644 --- a/hack/ci/windows.ps1 +++ b/hack/ci/windows.ps1 @@ -874,6 +874,7 @@ Try { } else { $env:DOCKER_HOST=$DASHH_CUT $env:PATH="$env:TEMP\binary;$env:PATH;" # Force to use the test binaries, not the host ones. + $env:GO111MODULE="off" Write-Host -ForegroundColor Green "INFO: DOCKER_HOST at $DASHH_CUT" $ErrorActionPreference = "SilentlyContinue"