GDK update fails for Ruby 3.0.0
Overview
gdk update
fails when running asdf update
on Ruby 3.0.0. Also, gdk update
builds everything for each Ruby version so it takes twice as much to update GDK.
Do we really need both rubies in the .tool-versions
file? Can't we just stick with one of them?
Steps to replicate (optional)
- Ran
gdk update
:
Downloading ruby-3.0.0.tar.gz...
-> https://cache.ruby-lang.org/pub/ruby/3.0/ruby-3.0.0.tar.gz
Installing ruby-3.0.0...
BUILD FAILED (macOS 11.2.3 using ruby-build 20210405)
Inspect or clean up the working tree at /var/folders/fs/n54fg5tn721809c4p2nzhf2c0000gp/T/ruby-build.20210406144942.65487.v7qmN9
Results logged to /var/folders/fs/n54fg5tn721809c4p2nzhf2c0000gp/T/ruby-build.20210406144942.65487.log
Last 10 log lines:
The Ruby yaml extension was not compiled.
ERROR: Ruby install aborted due to missing extensions
Configure options used:
--prefix=/Users/ramosmd/.asdf/installs/ruby/3.0.0
--with-openssl-dir=/usr/local/opt/openssl@1.1
--with-readline-dir=/usr/local/opt/readline
--enable-shared
CC=clang
LDFLAGS=-L/Users/ramosmd/.asdf/installs/ruby/3.0.0/lib
CPPFLAGS=-I/Users/ramosmd/.asdf/installs/ruby/3.0.0/include
ERROR: Failed to update some asdf tools.
make: *** [asdf-update] Error 1
❌️ ERROR: Failed to update.
- Installed Ruby 3.0.0 manually:
rvm install 3.0.0
- Ran GDK update again:
➜ gdk git:(main) ✗ rvm use 3.0.0
Using /Users/ramosmd/.rvm/gems/ruby-3.0.0
➜ gdk git:(main) ✗ gdk update
zsh: command not found: gdk
- Tried again:
Updating asdf tools
--------------------------------------------------------------------------------
golang 1.15.5 is already installed
golang 1.16.2 is already installed
minio 2021-02-01T22-56-52Z is already installed
nodejs 14.15.4 is already installed
postgres 11.9 is already installed
postgres 12.4 is already installed
redis 6.0.10 is already installed
ruby 2.7.2 is already installed
ruby 3.0.0 is already installed
yarn 1.22.5 is already installed
Error loading RubyGems plugin "/Users/ramosmd/.rvm/rubies/ruby-2.7.2/lib/ruby/gems/2.7.0/gems/executable-hooks-1.6.0/lib/rubygems_plugin.rb": incompatible library version - /Users/ramosmd/.rvm/gems/ruby-2.7.2/gems/openssl-2.2.0/lib/openssl.bundle (LoadError)
Error loading RubyGems plugin "/Users/ramosmd/.rvm/rubies/ruby-2.7.2/lib/ruby/gems/2.7.0/gems/gem-wrappers-1.4.0/lib/rubygems_plugin.rb": incompatible library version - /Users/ramosmd/.rvm/gems/ruby-2.7.2/gems/openssl-2.2.0/lib/openssl.bundle (LoadError)
/Users/ramosmd/.asdf/installs/ruby/2.7.2/lib/ruby/2.7.0/yaml.rb:3: warning: It seems your ruby installation is missing psych (for YAML output).
To eliminate this warning, please install libyaml and reinstall your ruby.
/Users/ramosmd/.asdf/installs/ruby/2.7.2/lib/ruby/2.7.0/rubygems/core_ext/kernel_require.rb:92:in `require': incompatible library version - /Users/ramosmd/.rvm/gems/ruby-2.7.2/gems/strscan-3.0.0/lib/strscan.bundle (LoadError)
from /Users/ramosmd/.asdf/installs/ruby/2.7.2/lib/ruby/2.7.0/rubygems/core_ext/kernel_require.rb:92:in `require'
from /Users/ramosmd/.asdf/installs/ruby/2.7.2/lib/ruby/2.7.0/psych/scalar_scanner.rb:2:in `<top (required)>'
from /Users/ramosmd/.asdf/installs/ruby/2.7.2/lib/ruby/2.7.0/rubygems/core_ext/kernel_require.rb:92:in `require'
from /Users/ramosmd/.asdf/installs/ruby/2.7.2/lib/ruby/2.7.0/rubygems/core_ext/kernel_require.rb:92:in `require'
from /Users/ramosmd/.asdf/installs/ruby/2.7.2/lib/ruby/2.7.0/psych/nodes/node.rb:4:in `<top (required)>'
from /Users/ramosmd/.asdf/installs/ruby/2.7.2/lib/ruby/2.7.0/rubygems/core_ext/kernel_require.rb:92:in `require'
from /Users/ramosmd/.asdf/installs/ruby/2.7.2/lib/ruby/2.7.0/rubygems/core_ext/kernel_require.rb:92:in `require'
from /Users/ramosmd/.asdf/installs/ruby/2.7.2/lib/ruby/2.7.0/psych/nodes.rb:2:in `<top (required)>'
from /Users/ramosmd/.asdf/installs/ruby/2.7.2/lib/ruby/2.7.0/rubygems/core_ext/kernel_require.rb:92:in `require'
from /Users/ramosmd/.asdf/installs/ruby/2.7.2/lib/ruby/2.7.0/rubygems/core_ext/kernel_require.rb:92:in `require'
from /Users/ramosmd/.asdf/installs/ruby/2.7.2/lib/ruby/2.7.0/psych.rb:15:in `<top (required)>'
from /Users/ramosmd/.asdf/installs/ruby/2.7.2/lib/ruby/2.7.0/rubygems/core_ext/kernel_require.rb:92:in `require'
from /Users/ramosmd/.asdf/installs/ruby/2.7.2/lib/ruby/2.7.0/rubygems/core_ext/kernel_require.rb:92:in `require'
from /Users/ramosmd/.asdf/installs/ruby/2.7.2/lib/ruby/2.7.0/yaml.rb:4:in `<top (required)>'
from /Users/ramosmd/.asdf/installs/ruby/2.7.2/lib/ruby/2.7.0/rubygems/core_ext/kernel_require.rb:92:in `require'
from /Users/ramosmd/.asdf/installs/ruby/2.7.2/lib/ruby/2.7.0/rubygems/core_ext/kernel_require.rb:92:in `require'
from /Users/ramosmd/.asdf/installs/ruby/2.7.2/lib/ruby/2.7.0/rubygems.rb:712:in `load_yaml'
from /Users/ramosmd/.asdf/installs/ruby/2.7.2/lib/ruby/2.7.0/rubygems/config_file.rb:332:in `load_file'
from /Users/ramosmd/.asdf/installs/ruby/2.7.2/lib/ruby/2.7.0/rubygems/config_file.rb:182:in `initialize'
from /Users/ramosmd/.asdf/installs/ruby/2.7.2/lib/ruby/2.7.0/rubygems/gem_runner.rb:79:in `new'
from /Users/ramosmd/.asdf/installs/ruby/2.7.2/lib/ruby/2.7.0/rubygems/gem_runner.rb:79:in `do_configuration'
from /Users/ramosmd/.asdf/installs/ruby/2.7.2/lib/ruby/2.7.0/rubygems/gem_runner.rb:44:in `run'
from /Users/ramosmd/.asdf/installs/ruby/2.7.2/bin/gem:21:in `<main>'
ERROR: Failed to install gitlab-development-kit Ruby gem.
make: *** [asdf-update] Error 1
❌️ ERROR: Failed to update.
- Tried to force the update:
- Ran
gdk doctor
:
➜ gdk git:(main) ✗ gdk doctor
GDK is healthy
Proposal (optional)
Use only Ruby 2.7.0.
Environment (optional)
- Operating system: macOS 11.2.3
- The contents of your
gdk.yml
: empty - Ruby 2.7.2:
ruby 2.7.2p137 (2020-10-01 revision 5445e04352) [x86_64-darwin19]
- Ruby 3.0.0:
ruby 3.0.0p0 (2020-12-25 revision 95aff21468) [x86_64-darwin20]
- GDK version:
92ea8d19e07
Edited by Marcia Ramos