mirror of
https://github.com/elastic/logstash.git
synced 2025-04-23 22:27:21 -04:00
Add debug message when a plugin is not found when generating the NOTICE File
Fixes #8404
This commit is contained in:
parent
ac6feed21d
commit
32a62b6c6c
1 changed files with 3 additions and 0 deletions
|
@ -44,6 +44,9 @@ namespace "license" do
|
|||
seen_dependencies = Hash.new
|
||||
LogStash::RakeLib::DEFAULT_PLUGINS.each do |plugin|
|
||||
gemspec = Gem::Specification.find_all_by_name(plugin)[0]
|
||||
if gemspec.nil?
|
||||
raise "Fail to generate `NOTICE.TXT` file because #{plugin} was not found in the installed plugins specifications"
|
||||
end
|
||||
gemspec.runtime_dependencies.each do |dep|
|
||||
name = dep.name
|
||||
next if SKIPPED_DEPENDENCIES.include?(name) || seen_dependencies.key?(name)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue