This commit is contained in:
parent
1ccf4b8301
commit
6fd3278ee8
@ -152,9 +152,15 @@ func getTechAndVersion(symlink string) (*TechInfo, error) {
|
|||||||
|
|
||||||
dirName := filepath.Base(absLink)
|
dirName := filepath.Base(absLink)
|
||||||
parts := strings.Split(dirName, "-")
|
parts := strings.Split(dirName, "-")
|
||||||
|
fmt.Println("DEBUG", symlink)
|
||||||
|
fmt.Println("DEBUG", absLink)
|
||||||
|
fmt.Println("DEBUG", dirName)
|
||||||
|
fmt.Println("DEBUG", parts)
|
||||||
if len(parts) < 2 {
|
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+`)
|
re := regexp.MustCompile(`\d+\.\d+\.\d+`)
|
||||||
|
Loading…
Reference in New Issue
Block a user