Skip to content

Failed running with Ruby 3.x #33

Description

@rockstorm101
  • 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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions