Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
None
Description
Currently, building the Ruby distribution in the Docker container fails as follows.
$ ./build.sh docker $ cd lang/ruby $ ./build.sh clean dist ... rake aborted! ArgumentError: wrong number of arguments (given 2, expected 0) /home/sekikn/avro/lang/ruby/.gem/gems/echoe-4.6.6/lib/echoe/rubygems.rb:10:in `validate' /home/sekikn/avro/lang/ruby/.gem/gems/rake-13.0.6/exe/rake:27:in `<top (required)>' Tasks: TOP => dist => gem => pkg/avro-1.11.0.pre1.gem (See full trace by running task with --trace)
This is because Ruby 2.7 is used in the Docker container and its rubygems library version is 3.1.2.
rubygems have changed the semantics of its validate function from v3.x, and echoe doesn't seem to be compatible with that change.
We should replace echoe with something simliar since it has not been maintained for several years, but it looks a bit tough to me, so I propose an easy workaround that building gem with the gem build command directly instead of via bundler, and using echoe only to generate avro.gemspec.
Attachments
Issue Links
- relates to
-
AVRO-3222 [RUBY] Fix the ruby interop tests
- Closed
- links to