Skip to content

Conversation

jonathanhefner
Copy link

@jonathanhefner jonathanhefner commented Oct 17, 2020

This reduces "conflicting chdir during another chdir block" warnings when calling Rake::Application#run inside a Dir.chdir block.

Comment on lines 277 to 278
Dir.chdir(dir) do
Dir.glob(@rakefiles.map { |name| escape_glob(name) }).first || @rakefiles.find(&:empty?)
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

When support for Ruby < 2.5 is dropped, this Dir.chdir can be replaced with Dir.glob's base kwarg.

This reduces "conflicting chdir during another chdir block" warnings
when calling `Rake::Application#run` inside a `Dir.chdir` block.
@hsbt hsbt force-pushed the limit-chdir-calls branch from 856409f to f34546f Compare March 25, 2022 10:00
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 this pull request may close these issues.

1 participant