lburgazzoli commented on a change in pull request #849: Groovy Rest example 
fails due to Unable to find loader for language=xml
URL: https://github.com/apache/camel-k/pull/849#discussion_r305841229
 
 

 ##########
 File path: pkg/trait/dependencies.go
 ##########
 @@ -50,7 +50,7 @@ func (t *dependenciesTrait) Apply(e *Environment) error {
                        util.StringSliceUniqueAdd(&dependencies, dep)
                }
        }
-       for _, s := range e.Integration.Spec.Sources {
+       for _, s := range append(e.Integration.Spec.Sources, 
e.Integration.Status.GeneratedSources...) {
 
 Review comment:
   Not sure about this as it could eventually append `GeneratedSources` to 
`Sources` if the underlying slice has some capacity. There is an utility method 
`Integration.Sources()` that should properly combine the two sources

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to