willbryant/digest-blake3

cannot load such file -- digest/blake3/blake3

Closed this issue · 3 comments

I am using Ruby 3.2.2 and just installed this gem using gem install digest-blake3 but when I do a require 'digest/blake3' under irb to try it out I get the following error:

<internal:/home/user/.rbenv/versions/3.2.2/lib/ruby/site_ruby/3.2.0/rubygems/core_ext/kernel_require.rb>:85:in `require': cannot load such file -- digest/blake3/blake3 (LoadError)
	from <internal:/home/user/.rbenv/versions/3.2.2/lib/ruby/site_ruby/3.2.0/rubygems/core_ext/kernel_require.rb>:85:in `require'
	from /home/user/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/digest-blake3-1.3.3.1/lib/digest/blake3.rb:1:in `<top (required)>'
	from <internal:/home/user/.rbenv/versions/3.2.2/lib/ruby/site_ruby/3.2.0/rubygems/core_ext/kernel_require.rb>:159:in `require'
	from <internal:/home/user/.rbenv/versions/3.2.2/lib/ruby/site_ruby/3.2.0/rubygems/core_ext/kernel_require.rb>:159:in `rescue in require'
	from <internal:/home/user/.rbenv/versions/3.2.2/lib/ruby/site_ruby/3.2.0/rubygems/core_ext/kernel_require.rb>:39:in `require'
	from (irb):1:in `<main>'
	from /home/user/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/irb-1.6.2/exe/irb:11:in `<top (required)>'
	from /home/user/.rbenv/versions/3.2.2/bin/irb:25:in `load'
	from /home/user/.rbenv/versions/3.2.2/bin/irb:25:in `<main>'
<internal:/home/user/.rbenv/versions/3.2.2/lib/ruby/site_ruby/3.2.0/rubygems/core_ext/kernel_require.rb>:85:in `require': cannot load such file -- digest/blake3 (LoadError)
	from <internal:/home/user/.rbenv/versions/3.2.2/lib/ruby/site_ruby/3.2.0/rubygems/core_ext/kernel_require.rb>:85:in `require'
	from (irb):1:in `<main>'
	from /home/user/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/irb-1.6.2/exe/irb:11:in `<top (required)>'
	from /home/user/.rbenv/versions/3.2.2/bin/irb:25:in `load'
	from /home/user/.rbenv/versions/3.2.2/bin/irb:25:in `<main>'

I can repro. Seems to have affected a bunch of gems, and caused by a rubygems change: rubygems/rubygems#6205

Please retest with 1.4.0 and reopen if not fixed.

Thank you so much @willbryant. That was very fast and it works!