This commit is contained in:
parent
1ccf4b8301
commit
6fd3278ee8
1 changed files with 8 additions and 2 deletions
|
@ -152,9 +152,15 @@ func getTechAndVersion(symlink string) (*TechInfo, error) {
|
|||
|
||||
dirName := filepath.Base(absLink)
|
||||
parts := strings.Split(dirName, "-")
|
||||
|
||||
fmt.Println("DEBUG", symlink)
|
||||
fmt.Println("DEBUG", absLink)
|
||||
fmt.Println("DEBUG", dirName)
|
||||
fmt.Println("DEBUG", parts)
|
||||
if len(parts) < 2 {
|
||||
return nil, errors.New("failed to parse language and version from symlink")
|
||||
return &TechInfo{
|
||||
Tech: "default",
|
||||
Version: "",
|
||||
}, nil
|
||||
}
|
||||
|
||||
re := regexp.MustCompile(`\d+\.\d+\.\d+`)
|
||||
|
|
Loading…
Reference in a new issue