Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CLI arguments --no-ri and --no-rdoc have been deprecated since Ruby 2.6.0 #544

Closed
johanfleury opened this issue Dec 11, 2020 · 0 comments · Fixed by #545
Closed

CLI arguments --no-ri and --no-rdoc have been deprecated since Ruby 2.6.0 #544

johanfleury opened this issue Dec 11, 2020 · 0 comments · Fixed by #545

Comments

@johanfleury
Copy link
Contributor

Affected Puppet, Ruby, OS and module versions/distributions

  • Puppet: 7.0.0
  • Ruby:
# /opt/puppetlabs/puppet/bin/ruby --version
ruby 2.7.1p83 (2020-03-31 revision a0c7c23c9c) [x86_64-linux]
# /opt/puppetlabs/puppet/bin/gem --version
3.1.2
  • Distribution: Debian 10 (Buster)
  • Module version: latest

How to reproduce (e.g Puppet code you use)

include r10k

What are you seeing

Puppet fails at installing r10k.

What behaviour did you expect instead

Puppet should install r10k.

Output log

puppet-agent[31550]: (/Stage[main]/R10k::Install/Package[r10k]/ensure) change from 'absent' to 'present' failed: Execution of '/opt/puppetlabs/puppet/bin/gem install --no-ri --no-rdoc --no-document r10k' returned 1: ERROR:  While executing gem ... (OptionParser::InvalidOption)
puppet-agent[31550]: (/Stage[main]/R10k::Install/Package[r10k]/ensure)     invalid option: --no-ri
puppet-agent[31550]: (/Stage[main]/R10k::Install/Package[r10k]/ensure) Did you mean?  no-force (corrective)
puppet-agent[31550]: (/Stage[main]/R10k::Install::Puppet_gem/File[/usr/bin/r10k]) Dependency Package[r10k] has failures: true
puppet-agent[31550]: (/Stage[main]/R10k::Install::Puppet_gem/File[/usr/bin/r10k]) Skipping because of failed dependencies

Any additional information you'd like to impart

# /opt/puppetlabs/puppet/bin/gem install --no-ri --no-rdoc r10k
ERROR:  While executing gem ... (OptionParser::InvalidOption)
    invalid option: --no-ri
Did you mean?  no-force
# /opt/puppetlabs/puppet/bin/gem install --no-rdoc r10k
ERROR:  While executing gem ... (OptionParser::InvalidOption)
    invalid option: --no-rdoc
Did you mean?  no-force
# /opt/puppetlabs/puppet/bin/gem install --no-document r10k
Successfully installed r10k-3.7.0
1 gem installed
johanfleury added a commit to johanfleury/puppet-r10k that referenced this issue Dec 11, 2020
johanfleury added a commit to johanfleury/puppet-r10k that referenced this issue Dec 11, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant