Skip to content

fix: avoid misleading messages during update#2613

Open
Abdul-Rafy2005 wants to merge 2 commits into
jbangdev:mainfrom
Abdul-Rafy2005:fix-update-message
Open

fix: avoid misleading messages during update#2613
Abdul-Rafy2005 wants to merge 2 commits into
jbangdev:mainfrom
Abdul-Rafy2005:fix-update-message

Conversation

@Abdul-Rafy2005

@Abdul-Rafy2005 Abdul-Rafy2005 commented Jul 14, 2026

Copy link
Copy Markdown

This fixes issue #2609.

Problem

When jbang version --update is executed, the update flow bypasses the normal version comparison and later triggers the standard version notification. As a result, users are told to run jbang version --update even though they just did.

Additionally, when JBang is already on the latest version, the command unnecessarily attempts an update instead of informing the user that it is already up to date.

Fix

This change always compares the installed version with the latest version, reports when the installation is already up to date, and suppresses the redundant notification after a successful update.

Result

  • No misleading "Run jbang version --update" message after an update.
  • Users are informed when they already have the latest version.
  • Existing version-check behavior remains unchanged.

Fixes #2609

@coderabbitai

coderabbitai Bot commented Jul 14, 2026

Copy link
Copy Markdown
Contributor

Important

Review skipped

Auto reviews are limited based on label configuration.

🏷️ Required labels (at least one) (1)
  • ai-review

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro Plus

Run ID: d966226d-d77d-445e-b43c-9c48243c01bb

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Update shows confusing messages

1 participant