Skip to content

Commit 9243be3

Browse files
authored
Merge pull request #3732 from ActiveState/mitchell/cp-1088
Fixed panic when tracking artifacts from camel builds.
2 parents 5f665ff + 7c35e92 commit 9243be3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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)