Re: git: 097770c474d4 - main - Mk/bsd.default-versions.mk: Change default version of Ruby

From: Matthias Fechner <mfechner_at_freebsd.org>
Date: Thu, 16 Mar 2023 09:38:40 UTC
Am 16.03.2023 um 10:33 schrieb Yasuhiro Kimura:
> Googling with this error message lists following pages.
>
> (a) ruby on rails - visit_Psych_Nodes_Alias: Unknown alias: default (Psych::BadAlias) - Stack Overflow
>      https://stackoverflow.com/questions/71191685/visit-psych-nodes-alias-unknown-alias-default-psychbadalias
> (b) Defect #35435: Psych 4: aliases in database.yml cause Psych::BadAlias exception - Redmine
>      https://www.redmine.org/issues/35435
> (c) Psych 4 included in Ruby 3.1 complains when using aliases in config · Issue #5140 · sidekiq/sidekiq
>      https://github.com/sidekiq/sidekiq/issues/5140
>
> According to them,
>
> 1. In Ruby 3.1 Psych is updated to 4.
> 2. There is incompatibility between Psych 3 and Psych 4.
> 3. To make program work with both Psych 3 and 4, a bit complex
>     handling such as one written in first answer of (a) is necessary.
> 4. One workaround is to add "gem 'psych', '~> 3.1'" to gemfile.

thanks a lot, I have now a working setup and already pushed the fix.

Gruß
Matthias

-- 

"Programming today is a race between software engineers striving to
build bigger and better idiot-proof programs, and the universe trying to
produce bigger and better idiots. So far, the universe is winning." --
Rich Cook