jordansissel / fpm

Effing package management! Build packages for multiple platforms (deb, rpm, etc) with great ease and sanity.
http://fpm.readthedocs.io/en/latest/
Other
11.09k stars 1.07k forks source link

fpm-1.15.0/lib/fpm/command.rb:301:in `execute': undefined method `exists?' for File:Class (NoMethodError) ruby 2.4.5 #1988

Closed romulasry closed 1 year ago

romulasry commented 1 year ago

fpm /home/user/.local/share/gem/ruby/gems/fpm-1.15.0/lib/fpm/command.rb:301:in execute': undefined methodexists?' for File:Class (NoMethodError)

if !File.exists?(workdir)
        ^^^^^^^^

Did you mean? exist? from /home/user/.local/share/gem/ruby/gems/clamp-1.0.1/lib/clamp/command.rb:68:in run' from /home/user/.local/share/gem/ruby/gems/fpm-1.15.0/lib/fpm/command.rb:591:inrun' from /home/user/.local/share/gem/ruby/gems/clamp-1.0.1/lib/clamp/command.rb:133:in run' from /home/user/.local/share/gem/ruby/gems/fpm-1.15.0/bin/fpm:7:in<top (required)>' from /home/user/bin/fpm:25:in load' from /home/user/bin/fpm:25:in

'

romulasry commented 1 year ago

gem --version 3.4.1

romulasry commented 1 year ago

fpm /home/user/.local/share/gem/ruby/3.2.0/gems/fpm-1.15.0/lib/fpm/command.rb:301:in execute': undefined methodexists?' for File:Class (NoMethodError)

if !File.exists?(workdir)
        ^^^^^^^^

Did you mean? exist? from /home/user/.local/share/gem/ruby/3.2.0/gems/clamp-1.0.1/lib/clamp/command.rb:68:in run' from /home/user/.local/share/gem/ruby/3.2.0/gems/fpm-1.15.0/lib/fpm/command.rb:591:inrun' from /home/user/.local/share/gem/ruby/3.2.0/gems/clamp-1.0.1/lib/clamp/command.rb:133:in run' from /home/user/.local/share/gem/ruby/3.2.0/gems/fpm-1.15.0/bin/fpm:7:in<top (required)>' from /home/user/bin/fpm:25:in load' from /home/user/bin/fpm:25:in

'

gem --version 3.4.5

romulasry commented 1 year ago

Duplicate: https://github.com/jordansissel/fpm/pull/1981