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

Cannot bundle install due to gemspec deps #1166

Open
amaciejk opened this issue Feb 7, 2024 · 1 comment
Open

Cannot bundle install due to gemspec deps #1166

amaciejk opened this issue Feb 7, 2024 · 1 comment
Labels

Comments

@amaciejk
Copy link

amaciejk commented Feb 7, 2024

I'm attempting to build the logstash-output-elasticsearch plugin locally from main, however bundle install fails with:

logstash-output-elasticsearch % jruby -S bundle install
Fetching gem metadata from https://rubygems.org/.........
Resolving dependencies.....................
Bundler could not find compatible versions for gem "logstash-core":
  In Gemfile:
    logstash-output-elasticsearch was resolved to 11.22.2, which depends on
logstash-core-plugin-api (>= 1.60, <= 2.99) was resolved to 1.60.1, which
depends on
        logstash-core (<= 2.4.99, >= 2.4.0.snapshot1)

    logstash-output-elasticsearch was resolved to 11.22.2, which depends on
logstash-mixin-deprecation_logger_support (~> 1.0) was resolved to 1.0.0,
which depends on
        logstash-core (>= 5.0.0)

Does the logstash-output-elasticsearch.gemspec need updating? I'm curious as to how your build must be working internally yet it doesn't build locally?!

jruby -version
jruby 9.4.5.0 (3.1.4) 2023-11-02 1abae2700f OpenJDK 64-Bit Server VM 21.0.2 on 21.0.2 +jit [arm64-darwin]
bundle --version
Bundler version 2.3.26
@amaciejk amaciejk added the bug label Feb 7, 2024
@amaciejk
Copy link
Author

amaciejk commented Feb 7, 2024

Note if I remove the following 2 deps it does work, so they seem to be the issue:

s.add_runtime_dependency "logstash-core-plugin-api", ">= 1.60", "<= 2.99"
s.add_development_dependency 'logstash-codec-plain'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant