You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
err=cerrors.Errorf("failed to create dispenser: %w", err)
114
-
warn(ctx, err, pluginPath)
115
-
continue
116
-
}
117
-
118
-
specPlugin, err:=dispenser.DispenseSpecifier()
119
-
iferr!=nil {
120
-
err=cerrors.Errorf("failed to dispense specifier (tip: check if the file is a valid plugin binary and if you have permissions for running it): %w", err)
121
-
warn(ctx, err, pluginPath)
122
-
continue
123
-
}
124
-
125
-
specs, err:=specPlugin.Specify()
106
+
specs, err:=r.loadSpecifications(pluginPath)
126
107
iferr!=nil {
127
-
err=cerrors.Errorf("failed to get specs: %w", err)
err=cerrors.Errorf("conflict detected, plugin %v already registered, please remove either %v or %v, these plugins won't be usable until that happens", fullName, conflict.path, pluginPath)
120
+
err=cerrors.Errorf("conflict detected, connector plugin %v already registered, please remove either %v or %v, these plugins won't be usable until that happens", fullName, conflict.path, pluginPath)
141
121
warn(ctx, err, pluginPath)
142
122
// delete plugin from map at the end so that further duplicates can
return connector.Specification{}, cerrors.Errorf("failed to create connector dispenser: %w", err)
163
+
}
164
+
165
+
specPlugin, err:=dispenser.DispenseSpecifier()
166
+
iferr!=nil {
167
+
return connector.Specification{}, cerrors.Errorf("failed to dispense connector specifier (tip: check if the file is a valid connector plugin binary and if you have permissions for running it): %w", err)
168
+
}
169
+
170
+
specs, err:=specPlugin.Specify()
171
+
iferr!=nil {
172
+
return connector.Specification{}, cerrors.Errorf("failed to get connector specs: %w", err)
0 commit comments