@@ -146,9 +146,10 @@ func loadToolsFrom(tools *[]*types.Tool, builtinToolsVersionsFilePath string) er
146
146
if row != constants .EMPTY_STRING {
147
147
rowParts := strings .Split (row , "=" )
148
148
toolName := strings .Split (rowParts [0 ], "." )[1 ]
149
+ toolVendor := strings .Split (rowParts [0 ], "." )[0 ]
149
150
toolVersion := rowParts [1 ]
150
151
if ! toolsSliceContains (tools , toolName , toolVersion ) {
151
- * tools = append (* tools , & types.Tool {Name : toolName , Version : toolVersion , Folder : folder })
152
+ * tools = append (* tools , & types.Tool {Name : toolName , Vendor : toolVendor , Version : toolVersion , Folder : folder })
152
153
}
153
154
}
154
155
}
@@ -190,8 +191,9 @@ func loadToolsFromFolderStructure(tools *[]*types.Tool, folder string) error {
190
191
if err != nil {
191
192
return i18n .WrapError (err )
192
193
}
194
+ toolVendor := filepath .Base (strings .Replace (folder , filepath .Base (folder ), "" , - 1 ))
193
195
if ! toolsSliceContains (tools , toolName .Name (), toolVersion .Name ()) {
194
- * tools = append (* tools , & types.Tool {Name : toolName .Name (), Version : toolVersion .Name (), Folder : toolFolder })
196
+ * tools = append (* tools , & types.Tool {Name : toolName .Name (), Vendor : toolVendor , Version : toolVersion .Name (), Folder : toolFolder })
195
197
}
196
198
}
197
199
}
0 commit comments