Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unused crypto libraries should not be required (cannot load such file -- bcrypt) #405

Closed
gregawoods opened this issue Apr 6, 2014 · 5 comments

Comments

@gregawoods
Copy link

I noticed a problem in 3.4.1 that was not present in 3.4.0. My app uses scrypt as the crypto provider. After updating to 3.4.1, my app throws the following error on startup:

[...]/gems/authlogic-3.4.1/lib/authlogic/crypto_providers/bcrypt.rb:1:in `require': cannot load such file -- bcrypt (LoadError)
  from [...]/gems/authlogic-3.4.1/lib/authlogic/crypto_providers/bcrypt.rb:1:in `<top (required)>'
  from [...]/gems/authlogic-3.4.1/lib/authlogic.rb:60:in `require'
  from [...]/gems/authlogic-3.4.1/lib/authlogic.rb:60:in `block in <top (required)>'
  from [...]/gems/authlogic-3.4.1/lib/authlogic.rb:59:in `each'
  from [...]/gems/authlogic-3.4.1/lib/authlogic.rb:59:in `<top (required)>'
  from [...]/gems/bundler-1.5.1/lib/bundler/runtime.rb:76:in `require'
  from [...]/gems/bundler-1.5.1/lib/bundler/runtime.rb:76:in `block (2 levels) in require'
  from [...]/gems/bundler-1.5.1/lib/bundler/runtime.rb:72:in `each'
  from [...]/gems/bundler-1.5.1/lib/bundler/runtime.rb:72:in `block in require'
  from [...]/gems/bundler-1.5.1/lib/bundler/runtime.rb:61:in `each'
  from [...]/gems/bundler-1.5.1/lib/bundler/runtime.rb:61:in `require'
  from [...]/gems/bundler-1.5.1/lib/bundler.rb:131:in `require'
  from [...]/test_app/config/application.rb:7:in `<top (required)>'
  from [...]/gems/railties-4.0.4/lib/rails/commands.rb:74:in `require'
  from [...]/gems/railties-4.0.4/lib/rails/commands.rb:74:in `block in <top (required)>'
  from [...]/gems/railties-4.0.4/lib/rails/commands.rb:71:in `tap'
  from [...]/gems/railties-4.0.4/lib/rails/commands.rb:71:in `<top (required)>'
  from script/rails:6:in `require'
  from script/rails:6:in `<main>'

I believe this related to c2eae1c.

I can add bcrypt to my Gemfile as a workaround. However, in the spirit of keeping my bundle lightweight I would prefer not to have to do this. Can unused libraries be made optional again?

Thanks for your consideration!

@gregawoods gregawoods changed the title Unused crypto libraries should not be required Unused crypto libraries should not be required (cannot load such file -- bcrypt) Apr 7, 2014
@bollard
Copy link

bollard commented Apr 8, 2014

+1

I have the same issue

@deefour
Copy link

deefour commented Apr 12, 2014

+1 I have

c.crypto_provider = Authlogic::CryptoProviders::Sha512

but am still expected to install bcrypt and scrypt gems now.

youngbrioche added a commit to innoq/iqvoc that referenced this issue Apr 16, 2014
still can’t use 3.4.1 because of
binarylogic/authlogic#405
@AxisOfEval
Copy link

I believe there is a fix for this in #406. Can this bug be closed now?

@gregawoods
Copy link
Author

@AxisOfEval I would feel more comfortable closing the issue once the linked PR is merged and a release is made to RubyGems.

@gregawoods
Copy link
Author

This is resolved in the latest release. Thanks everyone!

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

No branches or pull requests

4 participants