apache / apache/camel-k

Dependencies not added automatically when using dataformats

Open
#5,662 5 comments 0 reactions 0 assignees View on GitHub
area/DSL kind/feature status/never-stale
Dominant language
Go
Stars
927
Forks
387
Avg merge
15h 5m
Merged PRs (30d)
36

Description

### What happened?

When I created an integration that included the following step:
```
steps:
- marshal:
base64: {}
```
Camel-K didn't include the camel-base64 dependency automatically and it only worked after I included it explicitly in the dependencies section of the spec.

I see that for languages it does so, like in this example:
```
when:
- expression:
jq:
expression: '.store.book.price < 30'
```
where the use of jq caused the required dependencies for it to work to be added automatically to the Integration classpath.

I'm assuming dataformats should work like expression languages, and that's the reason I'm opening a bug. If this is by design, please just close it.

### Steps to reproduce

_No response_

### Relevant log output

_No response_

### Camel K version

2.2.0

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reproducing the marshal dataformat example with base64 and compare its generated dependencies with the jq expression-language example. Done means the camel-base64 dependency is added automatically, or the issue is documented as intentional behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
backend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
40/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.