Skip to content

Lazy-load digest dependency #672

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

Merged
merged 1 commit into from
Feb 25, 2022
Merged

Conversation

theodorton
Copy link
Contributor

@theodorton theodorton commented Feb 6, 2022

I've experienced some pain in running spring and bootsnap together. Symptom is a Gem::LoadError thrown when there are conflicting versions of digest installed:

You have already activated digest 3.0.0, but your Gemfile requires digest 3.1.0. Since digest is a default gem, you can either remove your dependency on it or try updating to a newer version of bundler that supports digest as a default gem. (Gem::LoadError)

Since digest is now being included as a default gem in Ruby, it's hard to circumvent the issue without locking digest to an older version.

The problem seems to disappear when deferring the require call.

Relevant issues to similar problems:
#603
#616

@rafaelfranca rafaelfranca merged commit 184ecda into rails:main Feb 25, 2022
@Tonkpils
Copy link

Tonkpils commented Mar 7, 2022

@rafaelfranca any chance we can backport this to the Spring 3 release? Upgrading to Rails 7 seems to trigger this failure and a few gems like spring-watcher-listen have a restriction on spring of < 4.0.

@yjukaku
Copy link

yjukaku commented Apr 7, 2022

It would be helpful as well for us to have this backported to Spring 3.

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

Successfully merging this pull request may close these issues.

4 participants