From d259864a2b206ca2a7bc7c538b01fba6671a7a8f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BF=AE=E9=9B=A8?= Date: Wed, 15 Apr 2026 10:35:58 +0800 Subject: [PATCH] fix(plugin): skip min version check in dev mode Ignore `MinCLIVersion` validation when the current CLI version is "dev". This allows plugins to be loaded during local development and testing without being blocked by strict semantic version constraints. --- internal/plugin/manifest.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/plugin/manifest.go b/internal/plugin/manifest.go index d65b217b..b216e4b9 100644 --- a/internal/plugin/manifest.go +++ b/internal/plugin/manifest.go @@ -124,7 +124,7 @@ func (m *Manifest) Validate(cliVersion string) error { if m.Type != "" && m.Type != "managed" && m.Type != "user" { return fmt.Errorf("invalid plugin type %q: must be \"managed\" or \"user\"", m.Type) } - if m.MinCLIVersion != "" && cliVersion != "" { + if m.MinCLIVersion != "" && cliVersion != "" && cliVersion != "dev" { if compareSemver(cliVersion, m.MinCLIVersion) < 0 { return fmt.Errorf("plugin requires CLI >= %s, current is %s", m.MinCLIVersion, cliVersion) }