You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Asciidoctor is not working because it cannot find its gems.
Steps to reproduce
$ $(nix-build -A asciidoctor)/bin/asciidoctor
/nix/store/fcmv963alkwz92c83jmp8aibi0kphzir-ruby-2.2.7/lib/ruby/site_ruby/2.2.0/rubygems/core_ext/kernel_require.rb:55:in `require': cannot load such file -- bundler (LoadError)
from /nix/store/fcmv963alkwz92c83jmp8aibi0kphzir-ruby-2.2.7/lib/ruby/site_ruby/2.2.0/rubygems/core_ext/kernel_require.rb:55:in `require'
from /nix/store/x581qik16cwkmhbbb8vdn0pbsd0hdal2-asciidoctor-1.5.5/bin/asciidoctor:15:in `<main>'
It happens that in the executable Gem.use_paths points to a non existing path:
$ ls /nix/store/9wf7crpvsa996vdgzxy2y533hp6z2646-bundler-1.15.3/lib/ruby/gems/2.2.0
ls: cannot access '/nix/store/9wf7crpvsa996vdgzxy2y533hp6z2646-bundler-1.15.3/lib/ruby/gems/2.2.0': No such file or directory
But
$ ls /nix/store/9wf7crpvsa996vdgzxy2y533hp6z2646-bundler-1.15.3/lib/ruby/gems/2.3.0/
bin build_info cache doc extensions gems specifications
exists.
Note
The issue can be solved for asciidoctor by switching from ruby_2_2 to ruby in the asciidoctor nix expression.
Issue description
Asciidoctor is not working because it cannot find its gems.
Steps to reproduce
It happens that in the executable
Gem.use_paths
points to a non existing path:But
exists.
Note
The issue can be solved for asciidoctor by switching from
ruby_2_2
toruby
in the asciidoctor nix expression.cc maintainer @yacinehmito
@NeQuissimus that made recent changes to ruby.
Technical details
17.09pre111447.a7c8f5e419
)nix-env (Nix) 1.11.13
)fd6e51d5505c128c2051ddcbcb395d12c0d94299
)true
)The text was updated successfully, but these errors were encountered: