From ccf02f366e2c46f11adf5bceadaee879f628aed1 Mon Sep 17 00:00:00 2001 From: MrJack <36191829+biagiopietro@users.noreply.github.com> Date: Tue, 17 Feb 2026 16:03:20 +0100 Subject: [PATCH] Updated FindSource signature Signed-off-by: MrJack <36191829+biagiopietro@users.noreply.github.com> --- internal/plugin/installer/installer.go | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/internal/plugin/installer/installer.go b/internal/plugin/installer/installer.go index 8a968cc6d..5d2a6169c 100644 --- a/internal/plugin/installer/installer.go +++ b/internal/plugin/installer/installer.go @@ -156,13 +156,8 @@ func NewForSource(source, version string) (installer Installer, err error) { } // FindSource determines the correct Installer for the given source. -// Version is optional; if not provided, it defaults to empty string. -func FindSource(location string, version ...string) (Installer, error) { - v := "" - if len(version) > 0 { - v = version[0] - } - installer, err := existingVCSRepo(location, v) +func FindSource(location, version string) (Installer, error) { + installer, err := existingVCSRepo(location, version) if err != nil && err.Error() == "Cannot detect VCS" { slog.Warn( "cannot get information about plugin source",