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

README steps for local development don't seem to work #111

Open
jquense opened this issue May 13, 2022 · 1 comment
Open

README steps for local development don't seem to work #111

jquense opened this issue May 13, 2022 · 1 comment

Comments

@jquense
Copy link

jquense commented May 13, 2022

Tell us about the issue

I was going to take a stab at adding support for array parameters in the filter plugins, but found that after cloning, setting up jruby, and bundler, it was impossible to install the gemspec dependencies. Presumably this is not an issue for core contributors using source versions of logstas, but I was not able to install the gems, due to incompatible dependency ranges on logstash-core:

Bundler could not find compatible versions for gem "logstash-core":
  In Gemfile:
    logstash-integration-jdbc was resolved to 5.2.4, which depends on
logstash-core-plugin-api (>= 1.60, <= 2.99) was resolved to 1.60.1, which
depends on
        logstash-core (>= 2.4.0.snapshot1, <= 2.4.99)

    logstash-integration-jdbc was resolved to 5.2.4, which depends on
      logstash-core (>= 6.5.0)
@andsel
Copy link
Contributor

andsel commented May 16, 2022

To develop a plugin you need a local clone of Logstash repository and then point the plugin's environment to it:
After created a clone of Logstash, go in the plugin directory and export:

export LOGSTASH_PATH=/path/to/logstash/ && export LOGSTASH_SOURCE=1

then

./gradlew vendor
buble install
bundle exec rspec

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

No branches or pull requests

2 participants