1
0
mirror of synced 2026-05-03 02:03:31 +00:00

Add support for extractPath

Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
This commit is contained in:
Stefan Prodan
2026-04-13 23:22:47 +03:00
parent 2cee1d795e
commit c0938d351f
5 changed files with 271 additions and 42 deletions

View File

@@ -25,15 +25,32 @@ const (
// When an update is available, Manifest, Version and Platform are
// populated so the caller can install without re-fetching or re-resolving.
type UpdateResult struct {
Name string
// Name is the plugin name.
Name string
// FromVersion is the currently installed version.
FromVersion string
ToVersion string
Skipped bool
SkipReason string
Manifest *PluginManifest
Version *PluginVersion
Platform *PluginPlatform
Err error
// ToVersion is the latest available version.
ToVersion string
// Skipped is true when the update was not performed.
Skipped bool
// SkipReason explains why the update was skipped.
SkipReason string
// Manifest is the resolved plugin manifest for the update.
Manifest *PluginManifest
// Version is the resolved target version for the update.
Version *PluginVersion
// Platform is the resolved platform entry for the update.
Platform *PluginPlatform
// Err is set when the update check itself failed.
Err error
}
// CheckUpdate compares the installed version against the latest in the catalog.