39
38
// ReadList returns a List of the tools in store with the given major version.
40
39
// If store contains no such tools, it returns ErrNoMatches.
42
41
logger.Debugf("reading v%d.* tools", majorVersion)
43
42
names, err := storage.List(toolPrefix)
49
48
for _, name := range names {
50
49
if !strings.HasPrefix(name, toolPrefix) || !strings.HasSuffix(name, toolSuffix) {
54
53
vers := name[len(toolPrefix) : len(name)-len(toolSuffix)]
55
54
if t.Version, err = version.ParseBinary(vers); err != nil {