Loading database.yml
fails in config/bundler_helper.rb
fails with Ruby 3.1
#8424
Milestone
database.yml
fails in config/bundler_helper.rb
fails with Ruby 3.1
#8424
Using Ruby 3.1 with its internal Psych 4.x YAML parser, starting diaspora* fails with
Unable to load application: Psych::BadAlias: Unknown alias: postgresql
Cause is at
diaspora/config/bundler_helper.rb
Line 23 in 7ce4309
This is due to the update to Psych 4.x in this Ruby release, where
load
andload_file
are effectively aliases forsafe_load
andsafe_load_file
. To fix this,works. Alternatively,
YAML.load_file(path, aliases: true)
would also work in this case. Unfortunately, we can't make this change right now, and would have to wait until we officially drop Ruby 2.7.The text was updated successfully, but these errors were encountered: