Skip to content

self upgrade fetches nothing: it re-runs self install from the running binary, so no machine can move to a newer build #947

Closed

Description

@David-Noble-at-work

writ self upgrade, and lore and star alike, is newUpgradeCmd at cmd/internal/cli/selfinstall.go:125: it overwrites the installed binary with the one running and refreshes its man pages, completions and extensions. It fetches nothing. A machine at v0.1.0-dev.20260924074819 stays there whatever develop publishes; the only way up is make install from a clone, or the installer over again.

Upgrade should do what install.sh does for one product: resolve the newest pre-release for this platform (or DEVLORE_VERSION), download the archive, verify it against devlore-cli_<version>_checksums.txt, and run the unpacked product's self install <prefix>, so the record is refreshed the way #933 and #928 define. self upgrade --from <archive> keeps the offline path.

Found 2026-09-24 reading the tree at d54626d2.

Plan and design documents

Kind Document
Plan docs/plans/fix/947-self-upgrade-fetches-nothing-it.md
Design docs/architecture/10-command-line-interface.md

Epic: #453 · Feature: #83

Metadata

Metadata

Assignees

No one assigned

    Labels

    Epic:ReleaseDistributionRelease, distribution, and self-installbugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions