mirror of
https://github.com/elastic/logstash.git
synced 2025-04-24 14:47:19 -04:00
LOGSTASH_ENV=development vendor:gems will install gem that use the :git or :github option.
Fixes #2375
This commit is contained in:
parent
d9b049f74b
commit
803ff7bab7
1 changed files with 11 additions and 4 deletions
|
@ -78,12 +78,19 @@ module LogStash
|
|||
def bundler_install_command(gem_file, gem_path)
|
||||
# for now avoid multiple jobs, ex.: --jobs 4
|
||||
# it produces erratic exceptions and hangs (with Bundler 1.7.9)
|
||||
[
|
||||
options = [
|
||||
"install",
|
||||
"--gemfile=#{gem_file}",
|
||||
"--without=development",
|
||||
"--path", gem_path,
|
||||
"--gemfile=#{gem_file}",
|
||||
"--path",
|
||||
gem_path,
|
||||
]
|
||||
|
||||
# We don't install development gem from the gemfile.
|
||||
# If you add a gem with `git` or the `github` option bundler will mark
|
||||
# them as development and he will not install them.
|
||||
# To install them you need to do LOGSTASH_ENV=development rake gems:vendor
|
||||
options << "--without=development" unless LogStash::Environment.development?
|
||||
options
|
||||
end
|
||||
|
||||
def ruby_bin
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue