Skip to content

hack/make.ps1: Fix go list pattern#47264

Merged
thaJeztah merged 1 commit intomoby:masterfrom
vvoland:ci-fix-makeps1-templatefail
Jan 31, 2024
Merged

hack/make.ps1: Fix go list pattern#47264
thaJeztah merged 1 commit intomoby:masterfrom
vvoland:ci-fix-makeps1-templatefail

Conversation

@vvoland
Copy link
Contributor

@vvoland vvoland commented Jan 31, 2024

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.

- What I did

- How I did it

- How to verify it

- Description for the changelog

- A picture of a cute animal (not mandatory but encouraged)

@thaJeztah
Copy link
Member

Thanks! Do we understand why it used to work before (and still does ... but not always?)

@tianon
Copy link
Member

tianon commented Jan 31, 2024

Maybe different versions of PowerShell handled the escaping here slightly differently? 😬

@tianon
Copy link
Member

tianon commented Jan 31, 2024

Tested successfully and it worked/quoted correctly on both my older powershell and @yosifkit's up-to-date powershell 7

@thaJeztah
Copy link
Member

Failure is a known flaky and tracked elsewhere

=== FAIL: amd64.integration.system TestDiskUsage/empty (0.00s)
    disk_usage_test.go:41: assertion failed: 
        --- du
        +++ →
          types.DiskUsage{
        - 	LayersSize: 4096,
        + 	LayersSize: 0,
          	Images:     {},
          	Containers: {},
          	... // 3 identical fields
          }

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>
@thaJeztah
Copy link
Member

LOL, think you had 'em all, now it's golang's proxy doing a whoopsie;

go: downloading github.com/crazy-max/gotestlist v0.3.1
go: github.com/crazy-max/gotestlist/cmd/gotestlist@v0.3.1: github.com/crazy-max/gotestlist@v0.3.1: verifying module: github.com/crazy-max/gotestlist@v0.3.1: reading https://sum.golang.org/tile/8/0/x060/473: 404 Not Found
	server response: not found
Error: Process completed with exit code 1.

@thaJeztah
Copy link
Member

Bringing this one in; Windows is green

@thaJeztah thaJeztah merged commit 8a81b9d into moby:master Jan 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants