Skip to content

self uninstall deletes the program's configuration file even when it was changed #1046

Closed as duplicate

Description

@David-Noble-at-work

Found 2026-10-19 auditing #949, at 4d18e48c. runSelfUninstall calls removeDevloreConfig (cmd/internal/cli/selfinstall.go:905-924), which removes config.d/<tool>.yaml unconditionally. Every other file the uninstall touches goes through the hash guard, and its help says "A file changed since it was installed is kept, in case it is your own edit" (selfinstall.go:232-236, #1003). A program's configuration file is the file most likely to have been edited. It is also removed when the uninstall kept recorded files and left the manifest for a rerun.

Resolution

The configuration file is kept when it differs from what self install wrote, and said so in the summary, as a changed recorded file is.

Plan and design documents

Kind Document
Plan Not yet opened
Design docs/architecture/10-command-line-interface.md, § 3, The lifecycle is named once

Activity

  1. David-Noble-at-work commented on Oct 19, 2026

    @David-Noble-at-work
    ContributorAuthor

    Duplicate of #1009, which retires config.d: self install stops writing config.d/.yaml and self uninstall stops removing it, so the unguarded removal this issue reports goes with it. Filed 2026-10-19 without checking for an existing issue; closed the same day, ruled "Log that mistake as well together with the cost of any issues that you created that now must be removed."

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions