Debug lines
continuous-integration/drone/push Build is passing Details

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
1 changed files with 8 additions and 2 deletions

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