From cdfb7254bd19bc3415fac7b7fbd1800529f6aafc Mon Sep 17 00:00:00 2001 From: MrJack <36191829+biagiopietro@users.noreply.github.com> Date: Tue, 21 Jul 2026 17:37:08 +0200 Subject: [PATCH] Potential fix for pull request finding Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com> Signed-off-by: MrJack <36191829+biagiopietro@users.noreply.github.com> --- pkg/cmd/plugin_update.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pkg/cmd/plugin_update.go b/pkg/cmd/plugin_update.go index 0f3630afa..286b05930 100644 --- a/pkg/cmd/plugin_update.go +++ b/pkg/cmd/plugin_update.go @@ -82,6 +82,9 @@ func (o *pluginUpdateOptions) complete(args []string) error { o.plugins = make(map[string]string, len(args)) for _, arg := range args { + if strings.HasSuffix(arg, "@") { + return fmt.Errorf("invalid plugin reference %q: missing version after @", arg) + } name, version := parsePluginVersion(arg) if name == "" { return fmt.Errorf("invalid plugin reference %q: plugin name must not be empty", arg)