Repository navigation
fix(cli): self uninstall finishes on Windows, keeps its record, and names a kept file by its reason - #1036
Merged
David-Noble-at-work merged 3 commits intoOct 5, 2026
Conversation
David-Noble-at-work
deleted the
fix/1003-self-uninstall-on-windows-leaves
branch
October 5, 2026 18:28
This was referenced Oct 5, 2026
Open
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
Lane 26 of #949.
self uninstallrun from the installed copy left<tool>.exebehind. It now hands the image's path tocmd.exe-- always present, copied nowhere, left nowhere -- which retries the delete until this process releases the image, then stops. No self-copy, no hidden flag, no elevation.removeRecordedFilesreported a changed file, a refused file and an unreadable file all as "modified". It now says which: changed since installed (kept, it may be your edit), could not remove (access denied or in use), or could not read to check. This corrects Unix too.Unix needs none of the Windows machinery: it unlinks a running binary in place, so a
!windowsbuild stub defers nothing and the image is removed inline.docs/plans/fix/1003-self-uninstall-on-windows-leaves.md. It staysactive: its last box is a real install-and-uninstall on a Windows machine, owed until one is at hand; the Windows CI scenario stands in.Resolves #1003
Test plan
make test(108 packages),make vet-allandmake lint-allon linux, darwin and windows,star lint go,star lint shell; the PowerShell gate, 0 findings; cross-compiles for windowsmake test-scenarioon linux:self uninstallrun from the installed copy removes everything, the binary includedTime
Computed by the algorithm of noblefactor-ops#188 at merge.