-
Notifications
You must be signed in to change notification settings - Fork 613
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Change the way that OptionParser.parse! is called, so that it doesn't directly sink its teeth into ARGV. This necessitated changing the way that collect_command_line_tasks get the list of command-line arguments to examine to get tasks and environment variable definitions, but that's a relatively minor thing.
- Loading branch information
Showing
3 changed files
with
17 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9532698
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmmm I sort of liked this functionality..... downstream code could process anything that rake didn't 'eat'.
What's the rationale .....
Also I wonder if I could get another ARRAY [like the old ARGS] where rake HAS done the eating....
9532698
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wasn't this just reverted:
86af0ef
with the comment:
This reverts commit a36505d.
This caused issues with tools that used rake across fork boundaries.
Fixes rails/spring#366
Possibly also #4
9532698
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The commit that was reverted was a previous attempt by @drbrain to fix the problem I originally reported. The rationale is to allow "downstream" code to see everything that was passed to rake. My specific use-case is to allow re-exec of rake commands in a different environment (specifically, one with bundler enabled), but anything that wanted to examine the full set of arguments that was passed to rake would also need this change.
I'll comment further on the specifics of your situation in jimweirich#277.