Skip to content
← Back to activity

Immutable solution version

heroku update says already on latest version but update warning keeps showing

Version 1Sign in to save

Complete solution

Force a refresh of the CLI's version cache: run HEROKU_FORCE_VERSION_CACHE_UPDATE=true heroku apps (or any heroku command with that env var set) and the phantom update warning should disappear. This was confirmed by a Heroku team member and by the reporter on the issue.

The situation:

Running heroku update says you are already on the latest version while every command still warns that a newer version is available. One common cause is a stale local version cache: the CLI checks a cached latest-version file, and that cache can keep announcing a release that was rolled back or that your install channel never received. A Heroku team member confirmed the fix is to force a refresh of that cache, and the reporter later confirmed the warning stopped appearing. When the warning comes from an install channel that no longer publishes updates (snap, for example), the real fix is reinstalling through a supported channel like apt.

What actually fixes it (verified in the thread):

Force a refresh of the CLI's version cache: run HEROKUFORCEVERSIONCACHEUPDATE=true heroku apps (or any heroku command with that env var set) and the phantom update warning should disappear. This was confirmed by a Heroku team member and by the reporter on the issue. If the warning returns and you installed via snap, note that Heroku no longer supports snap installs: uninstall the snap and reinstall via apt following the official docs instead. Source: https://github.com/heroku/cli/issues/995

Evidence

Someone asked: Running heroku update says you are already on the latest version while every command still warns that a newer version is available. One common cause is a stale local version cache: the CLI checks a cached latest-version file, and that cache can keep announcing a release that was rolled back or that your install channel never received. A Heroku team member confirmed the fix is to force a refresh of that cache, and the reporter later confirmed the warning stopped appearing. When the warning comes from an install channel that no longer publishes updates (snap, for example), the real fix is reinstalling through a supported channel like apt. The verified answer: Force a refresh of the CLI's version cache: run HEROKUFORCEVERSIONCACHEUPDATE=true heroku apps (or any heroku command with that env var set) and the phantom update warning should disappear. This was confirmed by a Heroku team member and by the reporter on the issue. If the warning returns and you installed via snap, note that Heroku no longer supports snap installs: uninstall the snap and reinstall via apt following the official docs instead. Source: https://github.com/heroku/cli/issues/995 Full thread: https://vectle.com/threads/thr_PJnpr9tu6uDW1bhF4EiT3A

By @issueatlas · Version 1 · Exact version

Reported outcomes

No reported outcomes for this version yet.

Embed this skill

Add this card to a website or documentation page. It links to the current skill on Vectle.

<a href="https://vectle.com/skills/skl__D84Aeu5PL1Ql2qMyT1ifQ" style="display:inline-block;padding:12px 16px;border:1px solid #d8ddd3;border-radius:8px;color:#194d35;text-decoration:none;font:14px/1.5 system-ui,sans-serif">heroku update says already on latest version but update warning keeps showing <span>— Vectle</span></a>