-
Notifications
You must be signed in to change notification settings - Fork 352
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Groovy Rest example fails due to Unable to find loader for language=xml #849
Conversation
pkg/trait/dependencies.go
Outdated
@@ -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...) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @lburgazzoli , fixed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
there is a lint issue
pkg/trait/dependencies_test.go:171: line is 178 characters
I can see this in Travis, but on my laptop 'make lint' command hangs. I will check and fix it asap. |
You may need to tweak the lint parameters otherwise the linter will eat up all your memory and cpu, i.e. in travis it runs with:
|
Thanks, @lburgazzoli, fixed. |
Fixes #838