mirror of
https://github.com/mudler/luet.git
synced 2025-09-02 07:45:02 +00:00
📒 update vendor/
This commit is contained in:
4
vendor/github.com/mudler/go-pluggable/manager.go
generated
vendored
4
vendor/github.com/mudler/go-pluggable/manager.go
generated
vendored
@@ -99,7 +99,9 @@ func relativeToCwd(p string) (string, error) {
|
||||
|
||||
func (m *Manager) insertPlugin(p Plugin) {
|
||||
for _, i := range m.Plugins {
|
||||
if i.Executable == p.Executable {
|
||||
// We don't want any ambiguity here.
|
||||
// Binary plugins must be unique in PATH and Name
|
||||
if i.Executable == p.Executable || i.Name == p.Name {
|
||||
return
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user