From 6fd3278ee8026788c03303ab2fef69687108eb98 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adam=20=C5=A0trauch?= Date: Mon, 24 Apr 2023 22:29:59 +0200 Subject: [PATCH] Debug lines --- containers/tools.go | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/containers/tools.go b/containers/tools.go index 4897f91..b302930 100644 --- a/containers/tools.go +++ b/containers/tools.go @@ -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+`)