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

Failed running with Ruby 3.x #33

Open
4 of 18 tasks
rockstorm101 opened this issue Jan 17, 2023 · 0 comments
Open
4 of 18 tasks

Failed running with Ruby 3.x #33

rockstorm101 opened this issue Jan 17, 2023 · 0 comments

Comments

@rockstorm101
Copy link

  • I tried updating to the latest version
    • I can't, there is an issue
    • This is about an < latest
      • I understand older versions may be unsupported
  • I Am on Windows
    • Ubuntu Bash on Windows
    • Fedora Bash on Windows
    • Other Bash on Windows
  • I Am on Linux
    • Ubuntu
    • Fedora
    • CentOS
    • Redhat
    • Debian
  • I am on macOS 10.13
  • I am on macOS 10.14
  • I'm on Docker
    • I understand Docker may be unsupported

Description

The following Docker container (which in essence should be similar to a fresh Debian install with Ruby 3.x installed):

FROM ruby:3.2
RUN gem install docker-template

Produces the following output when running docker-template --help inside of it:

$ docker-template --help
/usr/local/bundle/gems/forwardable-extended-2.6.0/lib/forwardable/extended.rb:29:in `rb_delegate': wrong number of arguments (given 2, expected 1) (ArgumentError)
	from /usr/local/bundle/gems/extras-0.3.0/lib/extras/string.rb:12:in `<module:String>'
	from /usr/local/bundle/gems/extras-0.3.0/lib/extras/string.rb:10:in `<module:Extras>'
	from /usr/local/bundle/gems/extras-0.3.0/lib/extras/string.rb:9:in `<top (required)>'
	from <internal:/usr/local/lib/ruby/3.0.0/rubygems/core_ext/kernel_require.rb>:85:in `require'
	from <internal:/usr/local/lib/ruby/3.0.0/rubygems/core_ext/kernel_require.rb>:85:in `require'
	from /usr/local/bundle/gems/extras-0.3.0/lib/extras/all.rb:8:in `block in <top (required)>'
	from /usr/local/bundle/gems/extras-0.3.0/lib/extras/all.rb:7:in `each'
	from /usr/local/bundle/gems/extras-0.3.0/lib/extras/all.rb:7:in `<top (required)>'
	from <internal:/usr/local/lib/ruby/3.0.0/rubygems/core_ext/kernel_require.rb>:85:in `require'
	from <internal:/usr/local/lib/ruby/3.0.0/rubygems/core_ext/kernel_require.rb>:85:in `require'
	from /usr/local/bundle/gems/docker-template-0.22.0/lib/docker/template.rb:6:in `<top (required)>'
	from <internal:/usr/local/lib/ruby/3.0.0/rubygems/core_ext/kernel_require.rb>:85:in `require'
	from <internal:/usr/local/lib/ruby/3.0.0/rubygems/core_ext/kernel_require.rb>:85:in `require'
	from /usr/local/bundle/gems/docker-template-0.22.0/lib/docker/template/cli.rb:5:in `<top (required)>'
	from <internal:/usr/local/lib/ruby/3.0.0/rubygems/core_ext/kernel_require.rb>:85:in `require'
	from <internal:/usr/local/lib/ruby/3.0.0/rubygems/core_ext/kernel_require.rb>:85:in `require'
	from /usr/local/bundle/gems/docker-template-0.22.0/bin/docker-template:25:in `<top (required)>'
	from /usr/local/bundle/bin/docker-template:25:in `load'
	from /usr/local/bundle/bin/docker-template:25:in `<main>'

Same container running with Ruby 2.x (particularly 2.7) runs as expected:

$ docker-template --help
Commands:
  docker-template build [REPOS [OPTS]]  # Build all (or some) of your reposit...
  docker-template cache [REPOS [OPTS]]  # Cache all (or some) of your reposit...
  docker-template clean [REPOS [OPTS]]  # Clean all (or some) of your reposit...
  docker-template help [COMMAND]        # Describe available commands or one ...
  docker-template list [OPTS]           # List all possible builds.
  docker-template push [REPOS [OPTS]]   # Push all (or some) of your reposito...

Maybe set required Ruby version >= 2.1.0, < 3?

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

No branches or pull requests

1 participant