plugin: ignore name casing

This commit is contained in:
Alexander Wang 2025-04-06 23:45:36 -07:00
parent 364969a36b
commit 8813b17713
No known key found for this signature in database
GPG key ID: D89FA31966BDBECE

View file

@ -9,6 +9,7 @@ import (
"context" "context"
"encoding/json" "encoding/json"
"os/exec" "os/exec"
"strings"
"oss.terrastruct.com/util-go/xexec" "oss.terrastruct.com/util-go/xexec"
"oss.terrastruct.com/util-go/xmain" "oss.terrastruct.com/util-go/xmain"
@ -170,7 +171,7 @@ func FindPlugin(ctx context.Context, ps []Plugin, name string) (Plugin, error) {
if err != nil { if err != nil {
return nil, err return nil, err
} }
if info.Name == name { if strings.EqualFold(info.Name, name) {
return p, nil return p, nil
} }
} }