MCPcopy Create free account
hub / github.com/chainreactors/EvilProxy / pluginFilePreferred

Function pluginFilePreferred

internal/homeplugins/sync.go:424–435  ·  view source on GitHub ↗
(candidate pluginFileInfo, current pluginFileInfo)

Source from the content-addressed store, hash-verified

422}
423
424func pluginFilePreferred(candidate pluginFileInfo, current pluginFileInfo) bool {
425 if strings.TrimSpace(current.Path) == "" {
426 return true
427 }
428 if candidate.Version == "" {
429 return false
430 }
431 if current.Version == "" {
432 return true
433 }
434 return sdkpluginstore.UpdateAvailable(current.Version, candidate.Version)
435}
436
437func pluginExtension(goos string) string {
438 switch strings.ToLower(strings.TrimSpace(goos)) {

Callers 1

pluginFileInfosFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected