From 7c35e92da4165e4d521a352e6120f5890a2e71d6 Mon Sep 17 00:00:00 2001 From: mitchell Date: Mon, 8 Sep 2025 12:51:42 -0400 Subject: [PATCH] Fixed panic when tracking artifacts from camel builds. --- pkg/runtime/depot.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/runtime/depot.go b/pkg/runtime/depot.go index d32096d499..97284343ec 100644 --- a/pkg/runtime/depot.go +++ b/pkg/runtime/depot.go @@ -316,7 +316,7 @@ func (d *depot) Track(artifact *buildplan.Artifact, deploy *deployment) error { d.config.Cache[id].LastAccessTime = time.Now().Unix() // For dynamically imported artifacts, also include artifact metadata. - if artifact != nil { + if len(artifact.Ingredients) > 0 { d.config.Cache[id].Namespace = artifact.Ingredients[0].Namespace d.config.Cache[id].Name = artifact.Name() d.config.Cache[id].Version = artifact.Version()