Browse code

hack/make.ps1: Fix go list pattern

The double quotes inside a single quoted string don't need to be
escaped.
Looks like different Powershell versions are treating this differently
and it started failing unexpectedly without any changes on our side.

Signed-off-by: Paweł Gronowski <pawel.gronowski@docker.com>

Paweł Gronowski authored on 2024/02/01 03:32:43
Showing 1 changed files
... ...
@@ -348,7 +348,7 @@ Function Run-UnitTests() {
348 348
 Function Run-IntegrationTests() {
349 349
     $escRoot = [Regex]::Escape($root)
350 350
     $env:DOCKER_INTEGRATION_DAEMON_DEST = $bundlesDir + "\tmp"
351
-    $dirs = go list -test -f '{{- if ne .ForTest `"`" -}}{{- .Dir -}}{{- end -}}' .\integration\...
351
+    $dirs = go list -test -f '{{- if ne .ForTest "" -}}{{- .Dir -}}{{- end -}}' .\integration\...
352 352
     ForEach($dir in $dirs) {
353 353
         # Normalize directory name for using in the test results files.
354 354
         $normDir = $dir.Trim()