Skip to content

Commit 7c35e92

Browse files
committed
Fixed panic when tracking artifacts from camel builds.
1 parent f25d8e3 commit 7c35e92

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

pkg/runtime/depot.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -316,7 +316,7 @@ func (d *depot) Track(artifact *buildplan.Artifact, deploy *deployment) error {
316316
d.config.Cache[id].LastAccessTime = time.Now().Unix()
317317

318318
// For dynamically imported artifacts, also include artifact metadata.
319-
if artifact != nil {
319+
if len(artifact.Ingredients) > 0 {
320320
d.config.Cache[id].Namespace = artifact.Ingredients[0].Namespace
321321
d.config.Cache[id].Name = artifact.Name()
322322
d.config.Cache[id].Version = artifact.Version()

0 commit comments

Comments
 (0)