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

8.3.1 mergeback #9141

Merged
merged 3 commits into from
Nov 3, 2023
Merged

8.3.1 mergeback #9141

merged 3 commits into from
Nov 3, 2023

Conversation

AriaXLi
Copy link
Contributor

@AriaXLi AriaXLi commented Nov 3, 2023

No description provided.

joshcooper and others added 3 commits October 18, 2023 09:46
In ruby 2.7.x, the rb_file_exists_p and rb_dir_exists_p methods call
rb_warning to log that the methods are deprecated[1][2] However, the
rb_warning method is a noop if $VERBOSE is nil or false[3] To preserve
the same behavior, only warn when $VERBOSE is truthy. Also include the
class name and path in the warning so we can identify and fix the issue.

[1] https://github.com/ruby/ruby/blob/1f4d4558484b370999954f3ede7e3aa3a3a01ef3/file.c#L1819
[2] https://github.com/ruby/ruby/blob/1f4d4558484b370999954f3ede7e3aa3a3a01ef3/dir.c#L3301
[3] https://github.com/ruby/ruby/blob/1f4d4558484b370999954f3ede7e3aa3a3a01ef3/error.c#L336-L338
@joshcooper joshcooper merged commit 3aa2409 into puppetlabs:main Nov 3, 2023
7 of 9 checks passed
@joshcooper joshcooper added the maintenance Maintenance chores are excluded from changelogs label Nov 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
maintenance Maintenance chores are excluded from changelogs
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants