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::BadAlias in Ruby 3.1 configuration #1022

Open
negipo opened this issue Dec 9, 2022 · 0 comments · May be fixed by #1023
Open

Psych::BadAlias in Ruby 3.1 configuration #1022

negipo opened this issue Dec 9, 2022 · 0 comments · May be fixed by #1023

Comments

@negipo
Copy link

negipo commented Dec 9, 2022

We have an app with

  • sunspot_rails (2.6.0)
  • rails (6.1.7)
  • ruby (3.1.3)

When I create configuration like:

base: &base
  solr:
    hostname: 127.0.0.1
    port: 8983
    path: /solr/sunspot
  master_solr:
    hostname: 127.0.0.1
    port: 8983
    path: /solr/sunspot

development:
  <<: *base

test:
  <<: *base

Makes Unknown alias: base (Psych::BadAlias)
stacktrace

This is because Psych 4.0.0 goes safe mode by default in Ruby 3.1.
I found some fixes for similar problem in other projects:

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 a pull request may close this issue.

1 participant