Skip to content

self install --dry-run installs and self uninstall --dry-run uninstalls: the global flag is never read #1004

Open

Description

@David-Noble-at-work

self install --dry-run installs, and self uninstall --dry-run uninstalls. --dry-run is a global flag every command accepts ("Show what would be done without making changes", cmd/internal/cli/root.go:105), but at 01634491 nothing in cmd/internal/cli/selfinstall.go reads it outside self upgrade's help:

Amended 2026-10-01: this first named self install only; self uninstall ignores the flag too, and removes. Ruled the same day to add it here.

Amended 2026-10-19: at 4d18e48c, self install creates no layer directories (#1030 removed them), and the lines cited above have moved: runSelfInstall is selfinstall.go:305, the uninstall command :224-282, runSelfUninstall :707. Both commands still ignore --dry-run. Waits on #1011 (#916 lane 23, in its lane 8).

Resolution

self install --dry-run and self uninstall --dry-run each report what they would place or remove, and change nothing.

Plan and design documents

Kind Document
Plan Not yet opened

Activity

  1. changed the title [-]self install --dry-run installs: the global flag is never read[/-] [+]self install --dry-run installs and self uninstall --dry-run uninstalls: the global flag is never read[/+] on Oct 1, 2026
  2. David-Noble-at-work commented on Nov 9, 2026

    @David-Noble-at-work
    ContributorAuthor

    star github triage sweep added this issue to Triage: devlore, for the rules it breaks:

    • severity: a Bug whose Severity is blank; a bug is Critical, High, Medium or Low
    • no-evidence: no Evidence of completion section
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