Skip to content

Convert the Installers' One-Off Correction Code to Detect and Report #4347

Open

Description

@ptr727

Problem

The rule #4210 adds to GOVERNANCE.md "Design Before Code" says a one-off is detected and reported, never corrected by code. A tool installed by the wrong method is the named example. The host-setup installers still carry code that corrects such cases instead of reporting them.

Sites

  • host-setup/linux/install-tools.sh: remove_unowned_command, tool_unshadow, remove_stale, powershell_remove_non_apt, and the deletion of an old sudoers file.
  • host-setup/windows/install-tools.ps1: the removal of the Python app-execution-alias stub, and the -Reinstall winget removal. The second is a weaker candidate, since it runs only on request.

Done when

Each site detects the condition and reports it, naming the command that fixes it by hand, and removes nothing on its own. A site judged a deliberate exception is recorded as one in the rule text rather than left in silent disagreement. Tests cover the report path for each converted site.

Found by the round-4 backlog-burndown group for #4210 and #4175. The maintainer asked for one issue covering every site.

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

    enhancementscript

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions