@@ -136,9 +136,10 @@ func loadToolsFrom(tools *[]*types.Tool, builtinToolsVersionsFilePath string) er
136
136
if row != constants .EMPTY_STRING {
137
137
rowParts := strings .Split (row , "=" )
138
138
toolName := strings .Split (rowParts [0 ], "." )[1 ]
139
+ toolVendor := strings .Split (rowParts [0 ], "." )[0 ]
139
140
toolVersion := rowParts [1 ]
140
141
if ! toolsSliceContains (tools , toolName , toolVersion ) {
141
- * tools = append (* tools , & types.Tool {Name : toolName , Version : toolVersion , Folder : folder })
142
+ * tools = append (* tools , & types.Tool {Name : toolName , Vendor : toolVendor , Version : toolVersion , Folder : folder })
142
143
}
143
144
}
144
145
}
@@ -180,8 +181,9 @@ func loadToolsFromFolderStructure(tools *[]*types.Tool, folder string) error {
180
181
if err != nil {
181
182
return i18n .WrapError (err )
182
183
}
184
+ toolVendor := filepath .Base (strings .Replace (folder , filepath .Base (folder ), "" , - 1 ))
183
185
if ! toolsSliceContains (tools , toolName .Name (), toolVersion .Name ()) {
184
- * tools = append (* tools , & types.Tool {Name : toolName .Name (), Version : toolVersion .Name (), Folder : toolFolder })
186
+ * tools = append (* tools , & types.Tool {Name : toolName .Name (), Vendor : toolVendor , Version : toolVersion .Name (), Folder : toolFolder })
185
187
}
186
188
}
187
189
}
0 commit comments