logstash
logstash copied to clipboard
When developing Logstash, dependency gems are not installed.
Tell us about the issue
Description: According to Logstash readme instruction, rake bootstrap should bootstrap the environment. However, when executing the command, resulted gems not found issue.
...
Could not find belzebuth-0.2.3, benchmark-ips-2.10.0, ci_reporter_rspec-1.0.0, flores-0.0.7, json-schema-2.8.1, logstash-devutils-2.4.0-java, rack-test-1.1.0, rspec-3.11.0, webmock-3.14.0, ci_reporter-2.0.0, fivemat-1.3.7, gem_publisher-1.5.0, kramdown-1.14.0, rspec-wait-0.0.9, rspec-core-3.11.0, rspec-expectations-3.11.0, rspec-mocks-3.11.1, crack-0.4.5, hashdiff-1.0.1, builder-3.2.4, rspec-support-3.11.0, diff-lcs-1.5.0 in any of the sources
Run `bundle install` to install missing gems
My investigations show, rake bootstrap is using a global bundle and installing gems globally. We have two options:
- we have a ready gradle task to install gems locally where we can execute:
./gradlew installDevelopmentGems(renamed recently) - OR set the local bundle and install dependencies:
bundle config set --local path vendor/bundle
bundle install
URL:https://github.com/elastic/logstash/blob/main/README.md