Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Limit calls to Dir.chdir in Rake::Application #365

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

Open
jonathanhefner wants to merge 1 commit into ruby:master
base: master
Choose a base branch
Loading
from jonathanhefner:limit-chdir-calls

Conversation

@jonathanhefner
Copy link

@jonathanhefner jonathanhefner commented Oct 17, 2020
edited
Loading

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

Afsaneh1361 reacted with thumbs up emoji
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

@jonathanhefner jonathanhefner Oct 17, 2020

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

Reviewers

No reviews

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

1 participant

AltStyle によって変換されたページ (->オリジナル) /