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

Backport/metadata handling issue fixed in master #24

Merged
merged 3 commits into from
Dec 7, 2015
Merged

Backport/metadata handling issue fixed in master #24

merged 3 commits into from
Dec 7, 2015

Conversation

purbon
Copy link

@purbon purbon commented Dec 3, 2015

Fixes #19 and #22 for the core-api-v1 (aka 1.x logstash-core) series of plugins.

@purbon purbon added the bug label Dec 3, 2015
@purbon
Copy link
Author

purbon commented Dec 3, 2015

@jsvd can you let me know your thought on this backport?

@@ -20,7 +20,7 @@ Gem::Specification.new do |s|
s.metadata = { "logstash_plugin" => "true", "logstash_group" => "filter" }

# Gem dependencies
s.add_runtime_dependency "logstash-core", '>= 1.4.0', '< 2.0.0'
s.add_runtime_dependency "logstash-core", '>= 1.4.0', '< 1.999.0'
Copy link
Member

Choose a reason for hiding this comment

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

maybe s.add_runtime_dependency "logstash-core", '>= 1.4.0', '~> 1' ?

Copy link
Author

Choose a reason for hiding this comment

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

@jsvd It was agreed with @colinsurprenant this was the right way to follow. There is an issue in core for this.

Copy link
Author

Choose a reason for hiding this comment

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

see elastic/logstash#4236 for details.

@jsvd
Copy link
Member

jsvd commented Dec 3, 2015

Code LGTM, but we need to address the concurrent-ruby version problem before merging..
so if logstash-core is <=1.5.5 concurrent-ruby needs to be 0.9.1, but if > 1.5.5 then 0.9.2?

@purbon
Copy link
Author

purbon commented Dec 3, 2015

@jsvd as it's right now the gemfile is only helping on development environment. It will be harmless when installing the plugin/gem. what do you think?

@jsvd
Copy link
Member

jsvd commented Dec 3, 2015

but doing bundle install && bundle exec rspec will break as soon as 1.5.6 is released, right?
maybe we can pin down the logstash-core version only in the group?

@purbon
Copy link
Author

purbon commented Dec 3, 2015

well I guess as soon as 1.5.6 gets released we don't need this anymore. what do you think?

@jsvd
Copy link
Member

jsvd commented Dec 3, 2015

ahh because 1.5.6 pins a specific version of concurrent-ruby instead of ~0.9.1?
that still means we'll need to come to this plugin and remove the group definition, right?

@jsvd
Copy link
Member

jsvd commented Dec 7, 2015

+1 on removing the concurrent-ruby pinning
otherwise LGTM

@jsvd
Copy link
Member

jsvd commented Dec 7, 2015

ah and please change the logstash-core dependency to < 2.0.0.alpha0 ?

@purbon
Copy link
Author

purbon commented Dec 7, 2015

works for me, thanks for your feedback.

updated the logstash core requirement to < 2.0.0.alpha0
purbon added a commit that referenced this pull request Dec 7, 2015
Backport/metadata handling issue fixed in master
@purbon purbon merged commit f647357 into logstash-plugins:core-api-v1 Dec 7, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants