From 8c5a419efc430bfc803a487f5cd9029d4bbfc7ae Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adam=20=C5=A0trauch?= Date: Sun, 26 May 2024 01:10:14 +0200 Subject: [PATCH] Fix default tech --- containers/types.go | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/containers/types.go b/containers/types.go index f9110b6..a0b58b5 100644 --- a/containers/types.go +++ b/containers/types.go @@ -563,6 +563,13 @@ func (c *Container) GetPrimaryTech() (apps.AppTech, error) { parts := strings.Split(string(*stdouterr), "/") if len(parts) == 5 { rawTech := parts[3] + if rawTech == "default" { + return apps.AppTech{ + Name: "default", + Version: "", + }, nil + } + techParts := strings.Split(rawTech, "-") if len(techParts) != 2 { return tech, errors.New("wrong number of tech parts (" + rawTech + ")")