Skip to content
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

Merged
merged 3 commits into from
Jul 24, 2019

Conversation

dmvolod
Copy link
Member

@dmvolod dmvolod commented Jul 22, 2019

Fixes #838

@@ -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...) {
Copy link
Contributor

@lburgazzoli lburgazzoli Jul 22, 2019

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

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @lburgazzoli , fixed.

Copy link
Contributor

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

@dmvolod
Copy link
Member Author

dmvolod commented Jul 23, 2019

I can see this in Travis, but on my laptop 'make lint' command hangs. I will check and fix it asap.

@lburgazzoli
Copy link
Contributor

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:

GOGC=10 ./golangci-lint run --verbose --deadline 5m --config .golangci.yml

@dmvolod
Copy link
Member Author

dmvolod commented Jul 24, 2019

Thanks, @lburgazzoli, fixed.

@nicolaferraro nicolaferraro modified the milestone: 1.0.0-M1 Jul 24, 2019
@lburgazzoli lburgazzoli merged commit 63fede1 into apache:master Jul 24, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Groovy Rest example fails due to Unable to find loader for language=xml
4 participants