Repository navigation
fix(extensions): offer updates to installs that predate source records - #279
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Extensions installed from an extra catalogue before
.sources.jsonexisted now get offered their updates. Mine was claude-usage from the internal marketplace, installed 19 Nov at 01:02 and.sources.jsononly turned up at 07:13 as{}, so it read as the app's own, the built-in catalogue doesn't list it, and it sat on 0.1.0 through 0.2.0, 0.3.0 and 0.3.1 with no Update ever showing.On each catalogue load, an installed id with a tier but no source gets the source that has to be its own: the built-in index doesn't list it and exactly one extra source does. That runs before the sources are read for the rows, so the same load shows the update.
Left alone:
Nothing goes up from this, the tier still gets reconciled against that source's listing like any other, and an update still asks first.
Tests: 7 new in ExtensionSourceTests (the rule's cases, the file write, and a catalogue load going from 0.1.0 to an available 0.3.1).
swift testfor ExtensionSourceTests, ExtensionTierTests and ExtensionCatalogTests, 139 pass. docs/extensions.md has a paragraph on it.