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

psych < 4 fix #369

Merged
merged 1 commit into from Aug 27, 2021
Merged

psych < 4 fix #369

merged 1 commit into from Aug 27, 2021

Conversation

ahorek
Copy link
Contributor

@ahorek ahorek commented Aug 27, 2021

unsafe_load doesn't exist on older versions #368

fixes

Failure/Error: ::YAML.unsafe_load(data, **(kwargs || {}))
NoMethodError:
  undefined method `unsafe_load' for Psych:Module
  Did you mean?  safe_load
# /usr/local/rvm/gems/ruby-2.6.6-railsexpress/gems/bootsnap-1.8.0/lib/bootsnap/compile_cache/yaml.rb:26:in `input_to_output'
# /usr/local/rvm/gems/ruby-2.6.6-railsexpress/gems/bootsnap-1.8.0/lib/bootsnap/compile_cache/yaml.rb:124:in `fetch'
# /usr/local/rvm/gems/ruby-2.6.6-railsexpress/gems/bootsnap-1.8.0/lib/bootsnap/compile_cache/yaml.rb:124:in `load_file'

@ghost ghost added the cla-needed label Aug 27, 2021
@casperisfine
Copy link
Contributor

🤦 .

Thank you!

@casperisfine casperisfine merged commit e5f2de8 into Shopify:master Aug 27, 2021
@shopify-shipit shopify-shipit bot temporarily deployed to rubygems August 27, 2021 07:10 Inactive
texpert added a commit to texpert/florsan that referenced this pull request Aug 27, 2021
texpert added a commit to texpert/rails_6_rss_reader that referenced this pull request Aug 27, 2021
gsmendoza added a commit to solidusio/solidus_starter_frontend that referenced this pull request Aug 31, 2021
Currently getting the following error with bootsnap 1.8.0:

```
Failures:

  1) Sign In show validation erros
     Failure/Error: visit spree.login_path

     I18n::InvalidLocaleData:
       can not load translations from /home/gsmendoza/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/bundler/gems/solidus_i18n-502e467babda/config/locales/cs.yml: #<NoMethodError: undefined method `unsafe_load' for Psych:Module
       Did you mean?  safe_load>
     # ./spec/system/authentication/sign_in_spec.rb:8:in `block (2 levels) in <main>'
     # ------------------
     # --- Caused by: ---
     # NoMethodError:
     #   undefined method `unsafe_load' for Psych:Module
     #   Did you mean?  safe_load
     #   ./spec/system/authentication/sign_in_spec.rb:8:in `block (2 levels) in <main>'

Finished in 1.86 seconds (files took 1.51 seconds to load)
1 example, 1 failure

Failed examples:

rspec ./spec/system/authentication/sign_in_spec.rb:22 # Sign In show validation erros
```

The bootsnap issue was introduced in
Shopify/bootsnap@1d14e25.

This an open PR fixing it: Shopify/bootsnap#369.
@shopify-shipit shopify-shipit bot temporarily deployed to rubygems January 12, 2022 21:42 Inactive
jrafanie added a commit to jrafanie/manageiq that referenced this pull request Jun 28, 2022
Psych unsafe_load was added for psych 4 / 3 compatibility but was only available
in 3.3.2 and newer.

Prior to this change, bootsnap 1.8.0 would be break on psych 3.3.1 and older.

Bootsnap added psych 4 compatibility in 1.8.0 by using unsafe_load but this
doesn't work with 3.3.1 or older:
Shopify/bootsnap#368

Bootnap 1.8.1 allows older versions of psych to be compatible via:
Shopify/bootsnap#369
GilbertCherrie pushed a commit to GilbertCherrie/manageiq that referenced this pull request Jul 7, 2023
Psych unsafe_load was added for psych 4 / 3 compatibility but was only available
in 3.3.2 and newer.

Prior to this change, bootsnap 1.8.0 would be break on psych 3.3.1 and older.

Bootsnap added psych 4 compatibility in 1.8.0 by using unsafe_load but this
doesn't work with 3.3.1 or older:
Shopify/bootsnap#368

Bootnap 1.8.1 allows older versions of psych to be compatible via:
Shopify/bootsnap#369
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.

None yet

2 participants