Skip to content

Use wsl --update --web-download on windows-2022 GHA - #87

Open
SebTardif wants to merge 1 commit into
Vampire:masterfrom
SebTardif:fix/wsl-update-web-download
Open

Use wsl --update --web-download on windows-2022 GHA#87
SebTardif wants to merge 1 commit into
Vampire:masterfrom
SebTardif:fix/wsl-update-web-download

Conversation

@SebTardif

Copy link
Copy Markdown

Summary

On github-hosted windows-2022 runners this action always runs platform wsl --update for WSL2 before installing a distro. That path hits the Microsoft Store and intermittently fails with Forbidden (403) (see #72).

This change passes --web-download so the update uses the public CDN instead of the Store path.

Motivation / evidence

In patchloom CI the failure reproduced twice on main after a green stretch:

  • wsl.exe --updateForbidden (403). (exit 4294967295)
  • Action input update: false only skips distro apt upgrade, not this platform update

Consumer workaround that succeeded on the same image class: run wsl --update --web-download first; the action's subsequent Store update then reported "most recent version already installed". Encoding --web-download here removes the need for every consumer to pre-step.

Change

wslArguments = arrayOf("--update", "--web-download")

Only affects the existing win22 / X64 / github-hosted / WSL2≠1 branch.

Test plan

  • Action CI / test matrix on windows-2022 still installs Ubuntu (or default distro)
  • When Store 403 would previously fail, web-download path succeeds or still retries cleanly

Refs: #72

On github-hosted windows-2022 runners this action always runs platform
`wsl --update` for WSL2. The default Store path intermittently fails with
Forbidden (403) (issue Vampire#72). Prefer --web-download so the update uses the
public CDN, matching the workaround consumers already apply in CI.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant