Skip to content

Show updates for local package sources - #2628

Merged
glopesdev merged 1 commit into
bonsai-rx:mainfrom
glopesdev:show-updates-for-local-source
Jul 2, 2026
Merged

glopesdev merged 1 commit into
bonsai-rx:mainfrom
glopesdev:show-updates-for-local-source

Conversation

@glopesdev

Copy link
Copy Markdown
Member

The package manager Updates tab would not list updates for local package sources, even though the same packages appear as available updates under the Browse and Installed tabs. GetUpdatesAsync queried each installed package with the packageid: search qualifier, which the remote V3 search service parses but a local folder source does not. LocalPackageSearchResource treats the whole term as a plain substring match, so nothing matched. Local sources are now queried with the raw package id and matched exactly, so their updates appear.

The version range argument was also computed but never applied, so the query would return the latest version of every installed package regardless of whether it was newer than the installed one. This was masked by the local-source bug. Because the local packageid: query returned nothing, neither the Updates tab nor the startup check for available updates ever over-reported for a local source. Fixing the local query would unmask that over-reporting, so the version range is now applied in both the local and remote branches, and only packages with a version newer than the installed one are returned. The Uninstall tab passes an all-inclusive range and is unaffected.

Verification

  • On a local feed, a package with a newer version available now appears in the Updates tab, and opening its details shows the version dropdown.
  • A package already at the newest version in the feed does not appear.
  • The Browse and Installed tabs, and remote feeds, behave as before.

Closes #2565

Local package sources would show no updates, because they were queried
with the packageid: search qualifier that local feeds treat as a plain
substring match rather than an exact lookup. They are now queried by id
and matched exactly, so their available updates appear. Both local and
remote sources also apply the version range, so only packages with a
version newer than the installed one are returned.

Closes bonsai-rx#2565
@glopesdev glopesdev added this to the 2.9.1 milestone Jul 2, 2026
@glopesdev
glopesdev requested a review from a team July 2, 2026 15:05
@glopesdev glopesdev added the fix Pull request that fixes an issue label Jul 2, 2026
@glopesdev
glopesdev merged commit d93ac22 into bonsai-rx:main Jul 2, 2026
10 checks passed
@glopesdev
glopesdev deleted the show-updates-for-local-source branch July 2, 2026 16:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

fix Pull request that fixes an issue

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Package manager not showing updates for local package source

1 participant