Jira (PUP-11405) Replace deprecated Psych YAML load method

6 views
Skip to first unread message

Raul Tambre (Jira)

unread,
Jan 4, 2022, 3:33:02 PM1/4/22
to puppe...@googlegroups.com
Raul Tambre created an issue
 
Puppet / Task PUP-11405
Replace deprecated Psych YAML load method
Issue Type: Task Task
Assignee: Raul Tambre
Created: 2022/01/04 12:32 PM
Priority: Trivial Trivial
Reporter: Raul Tambre

Puppet uses the non-keyword variant of Psych's YAML.safe_load, which was deprecated in 3.1.0 with the replacement also introduced in that version. Psych 4.0.0 has removed the deprecated variant and thus we should switch to the new variant albeit with a version check since we still support older Ruby versions, which ship pre-3.1.0 Psych versions.

Add Comment Add Comment
 
This message was sent by Atlassian Jira (v8.20.2#820002-sha1:829506d)
Atlassian logo

Raul Tambre (Jira)

unread,
Jan 4, 2022, 3:36:02 PM1/4/22
to puppe...@googlegroups.com
Raul Tambre updated an issue
Change By: Raul Tambre
Puppet uses the non-keyword variant of Psych's YAML.safe_load, which was deprecated in 3.1.0 with the replacement also introduced in that version. Psych 4.0.0 has removed the deprecated variant and thus we should switch to the new variant albeit with a version check since we still support older Ruby versions, which ship pre-3.1.0 Psych versions.


As a minor side issue rubocop has switched to Psych 4.0.0 in a minor version causing CI breakage due to other libraries also not having been updated yet.

Raul Tambre (Jira)

unread,
Jan 4, 2022, 3:37:03 PM1/4/22
to puppe...@googlegroups.com
Raul Tambre updated an issue
Puppet uses the non-keyword variant of Psych's YAML.safe_load, which was deprecated in 3.1.0 with the replacement also introduced in that version. Psych 4.0.0 has removed the deprecated variant and thus we should switch to the new variant albeit with a version check since we still support older Ruby versions, which ship pre-3.1.0 Psych versions.

As a minor side issue rubocop rdoc has switched to Psych 4.0.0 in a minor version causing CI breakage due to other libraries also rubocop not having been updated for the deprecation yet.
Reply all
Reply to author
Forward
0 new messages