fluent / fluent-package-builder

td-agent (Fluentd) Building and Packaging System
Apache License 2.0
22 stars 23 forks source link

Add script to check manually installed plugin #573

Closed kenhys closed 11 months ago

kenhys commented 11 months ago

Examples:

Preinstalled plugins: (bundled by default)

daipom commented 11 months ago

Wow! Thanks!

kenhys commented 11 months ago

found that it needs to be fixed on deb platform.

/opt/fluent/lib/ruby/3.2.0/bundler.rb:310:in `rescue in root':  (Bundler::Dsl::DSLError)
[!] There was an error parsing `Gemfile`: Could not locate Gemfile or .bundle/ directory. Bundler cannot continue.

 #  from /opt/fluent/share/Gemfile:5
 #  -------------------------------------------
 #  
 >  source "https://rubygems.org"
 #  

:thinking:

daipom commented 11 months ago

found that it needs to be fixed on deb platform.

/opt/fluent/lib/ruby/3.2.0/bundler.rb:310:in `rescue in root':  (Bundler::Dsl::DSLError)
[!] There was an error parsing `Gemfile`: Could not locate Gemfile or .bundle/ directory. Bundler cannot continue.

 #  from /opt/fluent/share/Gemfile:5
 #  -------------------------------------------
 #  
 >  source "https://rubygems.org"
 #  

🤔

It seems that we need BUNDLE_GEMFILE environmental variable so that Bundler can find Gemfile.

ENV["BUNDLE_GEMFILE"] = ...
kenhys commented 11 months ago

It seems that we need BUNDLE_GEMFILE environmental variable so that Bundler can find Gemfile.

Thanks!

kenhys commented 11 months ago

Once script was deployed for a package, when fluent-diagtool was implemented such a feature, it is hard to remove it in point view of compatibility, so keep it aside.