Jira (FACT-3159) ArgumentError with install.rb

13 views
Skip to first unread message

Jerome Charaoui (Jira)

unread,
Oct 8, 2022, 10:01:02 AM10/8/22
to puppe...@googlegroups.com
Jerome Charaoui created an issue
 
Facter / Bug FACT-3159
ArgumentError with install.rb
Issue Type: Bug Bug
Affects Versions: FACT 4.2.11
Assignee: Unassigned
Created: 2022/10/08 7:00 AM
Priority: Normal Normal
Reporter: Jerome Charaoui

The install.rb script fails when running on Ruby 3.0.0:

{{./install.rb --destdir=debian/facter --sitelibdir=/usr/lib/ruby/vendor_ruby --ruby=/usr/bin/ruby
/usr/lib/ruby/3.0.0/fileutils.rb:865:in `install': wrong number of arguments (given 3, expected 2) (ArgumentError)
from ./install.rb:75:in `block in do_libs'
from ./install.rb:70:in `each'
from ./install.rb:70:in `do_libs'
from ./install.rb:287:in `block in run'
from /usr/lib/ruby/3.0.0/fileutils.rb:139:in `chdir'
from /usr/lib/ruby/3.0.0/fileutils.rb:139:in `cd'
from ./install.rb:277:in `run'
from ./install.rb:293:in `<main>'
}}

Add Comment Add Comment
 
This message was sent by Atlassian Jira (v8.20.11#820011-sha1:0629dd8)
Atlassian logo

Jerome Charaoui (Jira)

unread,
Oct 8, 2022, 10:02:01 AM10/8/22
to puppe...@googlegroups.com
Jerome Charaoui updated an issue
Change By: Jerome Charaoui
The install.rb script fails when running on Ruby 3.0.0:


{ { quote} ./install.rb --destdir=debian/facter --sitelibdir=/usr/lib/ruby/vendor_ruby --ruby=/usr/bin/ruby

/usr/lib/ruby/3.0.0/fileutils.rb:865:in `install': wrong number of arguments (given 3, expected 2) (ArgumentError)
        from ./install.rb:75:in `block in do_libs'
        from ./install.rb:70:in `each'
        from ./install.rb:70:in `do_libs'
        from ./install.rb:287:in `block in run'
        from /usr/lib/ruby/3.0.0/fileutils.rb:139:in `chdir'
        from /usr/lib/ruby/3.0.0/fileutils.rb:139:in `cd'
        from ./install.rb:277:in `run'
        from ./install.rb:293:in `<main>'

{quote } }

Morgan Rhodes (Jira)

unread,
Oct 11, 2022, 4:06:02 PM10/11/22
to puppe...@googlegroups.com
Morgan Rhodes updated an issue
Change By: Morgan Rhodes
Sprint: Phoenix 2022-10-26

Morgan Rhodes (Jira)

unread,
Oct 11, 2022, 4:06:03 PM10/11/22
to puppe...@googlegroups.com
Morgan Rhodes updated an issue
Change By: Morgan Rhodes
Team: Phoenix

Morgan Rhodes (Jira)

unread,
Oct 11, 2022, 4:07:02 PM10/11/22
to puppe...@googlegroups.com
Morgan Rhodes updated an issue
Change By: Morgan Rhodes
Story Points: 1

Josh Cooper (Jira)

unread,
Oct 13, 2022, 12:18:03 PM10/13/22
to puppe...@googlegroups.com
Josh Cooper updated an issue
Change By: Josh Cooper
Fix Version/s: FACT 4.2.13
Release Notes: Bug Fix
Release Notes Summary: facter's install.rb script is now compatible with Ruby 3.x
Community contribution from https://github.com/jcharaoui

Josh Cooper (Jira)

unread,
Oct 13, 2022, 12:20:03 PM10/13/22
to puppe...@googlegroups.com
Josh Cooper updated an issue
Change By: Josh Cooper
Fix Version/s: FACT 4.2.13
Fix Version/s: FACT 4.2.14

Josh Cooper (Jira)

unread,
Oct 13, 2022, 12:59:03 PM10/13/22
to puppe...@googlegroups.com
Josh Cooper updated an issue
Change By: Josh Cooper
Epic Link: PUP-11619
Reply all
Reply to author
Forward
0 new messages