Repository navigation
fix(ci): stop purging powershell via apt on Ubuntu 26.04 - #452
Merged
Merged
Conversation
The Ubuntu 26.04 runner image installs pwsh from a GitHub release tarball into /opt/microsoft/powershell/7, because the Microsoft apt repo has no 26.04 build yet. There is no powershell apt package, so apt-get purge aborted with exit code 100 and every Linux job failed before the build started. Drop the entry from the purge list and remove the tarball directory alongside the other rm -rf cleanups to keep reclaiming that space. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Marc Nuri <marc@marcnuri.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
The Linux jobs fail in the shared
free-disk-spacecomposite action on the Ubuntu 26.04 runner image (ubuntu-26.04, 20261025.179.1), before any build step runs:On Ubuntu 26.04 the runner image installs PowerShell from a GitHub release tarball into
/opt/microsoft/powershell/7, because the Microsoft apt repo has no pwsh build for 26.04 yet (seeinstall-powershell.shin actions/runner-images). There is nopowershellapt package, andapt-get purgeaborts on any name it cannot locate. A regex such as'^powershell.*'fails the same way when nothing matches.This PR:
'powershell'from theapt-get purgelistsudo rm -rf /opt/microsoft/powershell 2>/dev/null || truenext to the existing Android SDK and .NET cleanups, so the space is still reclaimedFailing runs
mainmainUnblocks #451.