Debug lines
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Adam Štrauch 2023-04-24 22:29:59 +02:00
parent 1ccf4b8301
commit 6fd3278ee8
Signed by: cx
GPG Key ID: 018304FFA8988F8D

View File

@ -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+`)