Skip to content

Update check wording: memesh update says "Already on latest version" on an install ahead of latest, and memesh status says "up to date" when latest cannot be parsed #414

Done

Description

@kevintseng

Two wording defects around the update check, both found while reviewing the memesh status fix (#410). Neither is caused by that fix, and neither changes what the CLI does.

1. memesh update says "Already on latest version" for an install that is ahead of npm latest

Installed 4.10.2 (a trial build published under the next tag) while npm latest is 4.9.4:

  • memesh status and memesh doctor say running pre-release version (4.10.2), npm latest is 4.9.4.
  • memesh update prints Already on latest version (4.10.2), which is literally false: latest is 4.9.4.

By reading the command (not run on an npm-global install), no downgrade can happen: memesh update returns at that message on every install channel before it reaches the installer, so only the words differ. The check is if (!check.updateAvailable) in the update command; it could say the same thing status says when isAheadOfLatest is true.

2. memesh status says "up to date" when npm's latest cannot be parsed as a version

With an update-check cache whose latestVersion is not a version (for example "latest"), memesh status prints Update check: up to date (…; latest latest). An answer nobody could parse is reported as a green line. isUpdateAvailable and isAheadOfLatest both return false for it, so the chain falls through to the up to date branch. A line such as Update check: could not compare (latest reported as "latest") would say what is known.

Activity

  1. kevintseng commented on Dec 2, 2026

    @kevintseng
    CollaboratorAuthor

    Update and status distinguish an ahead-of-latest install from an unreadable latest version. Verified on the open PR #650.

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

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions