Skip to content
This repository has been archived by the owner on Nov 9, 2018. It is now read-only.

Fails to build with ruby 2.5? #25

Closed
Keruspe opened this issue Mar 22, 2018 · 3 comments
Closed

Fails to build with ruby 2.5? #25

Keruspe opened this issue Mar 22, 2018 · 3 comments

Comments

@Keruspe
Copy link
Contributor

Keruspe commented Mar 22, 2018

Hi,

Not sure if it's strictly ruby 2.5 related but I started experiencing issues at the time I updated it.

TypeError: no implicit conversion of nil into String
.bundle/gems/rbnacl-libsodium-1.0.16/lib/rbnacl/libsodium.rb:23:in `join'
.bundle/gems/rbnacl-libsodium-1.0.16/lib/rbnacl/libsodium.rb:23:in `<module:Libsodium>'
.bundle/gems/rbnacl-libsodium-1.0.16/lib/rbnacl/libsodium.rb:4:in `<module:RbNaCl>'
.bundle/gems/rbnacl-libsodium-1.0.16/lib/rbnacl/libsodium.rb:3:in `<top (required)>'
.bundle/gems/macaroons-1.0.0/lib/macaroons/raw_macaroon.rb:3:in `require'
.bundle/gems/macaroons-1.0.0/lib/macaroons/raw_macaroon.rb:3:in `<top (required)>'
.bundle/gems/macaroons-1.0.0/lib/macaroons/macaroons.rb:3:in `require'
.bundle/gems/macaroons-1.0.0/lib/macaroons/macaroons.rb:3:in `<top (required)>'
.bundle/gems/macaroons-1.0.0/lib/macaroons.rb:1:in `require'
.bundle/gems/macaroons-1.0.0/lib/macaroons.rb:1:in `<top (required)>'
@andy-plutoflume
Copy link

We're seeing this when using this inside alpine

@steveklebanoff
Copy link

Even when using this change , I get the following when trying to run on nanobox:

      Gem::Ext::BuildError: ERROR: Failed to build gem native extension.

      current directory:
      /app/vendor/bundle/ruby/2.3.0/bundler/gems/rbnacl-libsodium-c1ee4d621b2e/ext/rbnacl
      /data/bin/ruby -r ./siteconf20180417-984-14el4ip.rb extconf.rb
      extconf.rb:22:in `<main>': can't modify frozen Array (RuntimeError)

      extconf failed, exit code 1

@joshleblanc
Copy link

So the reason you're getting that first error is because libsodium.rb is way back on https://github.com/crypto-rb/rbnacl-libsodium/blob/fb8bfb6f20151dfa4fd6d9ee005d3fd6bdb00f62/lib/rbnacl/libsodium.rb

You can fix it by manually replacing .bundle/gems/rbnacl-libsodium-1.0.16/lib/rbnacl/libsodium.rb with this: https://raw.githubusercontent.com/crypto-rb/rbnacl-libsodium/master/lib/rbnacl/libsodium.rb

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants