You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
self uninstall on Windows leaves its manifest behind, and the scenario that would have caught it never runs #1045
The manifest outlives the program on Windows. Run from the installed copy, runSelfUninstall (cmd/internal/cli/selfinstall.go:722-747) hands the running .exe to cmd.exe, puts it in remaining, and rewrites share/<tool>/manifest.json to record it. cmd.exe deletes the .exe once the process exits; nothing deletes the manifest, which now records a file that is gone. self uninstall on Windows leaves the running .exe behind, calls it modified, and deletes the manifest that recorded it #1003's plan chose this (D5) and its own Requirement 4 and the scenario (:59-61) require that no manifest is left. The live check of 2026-10-05 ("nothing left behind") very likely missed it.
Resolution
make test-scenario runs every scenario test, this one included, and a guard fails when a *Scenario* test exists that the target does not run.
On Windows, an uninstall from the installed copy leaves no manifest once the deferred deletion succeeds, and leaves the manifest recording the .exe when it fails, so a rerun can finish. The scenario passes on both Windows legs.
Activity
fix(cli): self uninstall --unattended takes the default and removes n…
test(scenario): the uninstall scenario waits for the running image as…
fix(self): every scenario runs, and self uninstall on Windows leaves …