-
Notifications
You must be signed in to change notification settings - Fork 114
Switch from execSync to execFileSync #180
Conversation
This pull request fixes 5 alerts when merging a4cc565 into 0c4d7f3 - view on LGTM.com fixed alerts:
|
This pull request fixes 5 alerts when merging 2956ed4 into 0c4d7f3 - view on LGTM.com fixed alerts:
|
This pull request fixes 5 alerts when merging 27792cc into 0c4d7f3 - view on LGTM.com fixed alerts:
|
This pull request fixes 5 alerts when merging 46aed7b into 0c4d7f3 - view on LGTM.com fixed alerts:
|
This pull request fixes 5 alerts when merging de77ff3 into 0c4d7f3 - view on LGTM.com fixed alerts:
|
This pull request fixes 5 alerts when merging 7148c18 into 0c4d7f3 - view on LGTM.com fixed alerts:
|
This is fixed on Linux/MacOS. I have no ideas how to make Windows work. @eddiemoore , @edward-codecov , @hootener , @thomasrockhu , etc. Suggestions very welcome. |
This pull request fixes 5 alerts when merging e9bd861 into 0c4d7f3 - view on LGTM.com fixed alerts:
|
This pull request fixes 5 alerts when merging caca56c into 0c4d7f3 - view on LGTM.com fixed alerts:
|
This pull request fixes 5 alerts when merging 40caa82 into 0c4d7f3 - view on LGTM.com fixed alerts:
|
Co-authored-by: Guillaume St-Pierre <guillaume@codecov.io>
This pull request fixes 5 alerts when merging aa09765 into 5f6cc62 - view on LGTM.com fixed alerts:
|
Co-authored-by: Guillaume St-Pierre <guillaume@codecov.io>
This pull request fixes 5 alerts when merging 1dd9c25 into 5f6cc62 - view on LGTM.com fixed alerts:
|
This pull request fixes 5 alerts when merging 9f0c2c9 into 5f6cc62 - view on LGTM.com fixed alerts:
|
ref: codecov#184 continuous from: ada583b codecov#180 makes `find` command change to run through `execFileSync()`. However, it always returns empty result because of the quote has over-included as the filename of search condition. So removed quotes from generated conditions. In addition, removing brackets from find arguments (a4cc565) has affected to the result of finding coverage files. This commit reverts brackets to get back the original search condition too. Previously quotes and escaped-brackets are required to run command on the shell environment, but no longer need them because of using `execFileSync()` that is disabled shell environment by default.
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.
I know it's already merged, but thought I should comment on it.
// It's not straightforward due to the nature of the find command | ||
_findArgs = [root].concat(patterns) | ||
if (more_patterns) { | ||
_findArgs.concat(more_patterns) |
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.
concat
doesn't mutate, it returns a new instance. So in this case you'd need to do _findArgs = _findArgs.concat(more_patterns)
_findArgs = [root].concat(winPatterns) | ||
if (more_patterns) { | ||
_findArgs.concat(more_patterns) | ||
} | ||
_files = execSync('dir ' + winPatterns.join(' ') + more_patterns) |
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.
Seems like nothing is happening with _findArgs
in here.
_files = execSync('dir ' + patterns + more_patterns) | ||
_findArgs = [root].concat(winPatterns) | ||
if (more_patterns) { | ||
_findArgs.concat(more_patterns) |
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.
Same thing here with concat
doesn't mutate.
Thanks, @eddiemoore. Can you throw together a PR and we'll get it fixed? (It might have already been, this version was broken and needed to be fixed. |
No description provided.