-
Notifications
You must be signed in to change notification settings - Fork 36
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
Ensure current working directory files do not affect broccoli-funnel
operation
#136
Conversation
Using srcDir, allowEmpty, and destDir together with a missing srcDir used to output an empty destDir, but as of 3.0 it emits nothing. I think this is probably unintentional. This PR includes a failing test.
- I need the newer walk sync because it handles symlink cycles - there's a newer broccoli-funnel that already updated, but that one is full of bugs (broccolijs#135 broccolijs#136) and I don't have time right now to unfuck it.
allowEmpty
along with missing srcDir
when using a destDir
OK, I've figured out the root cause. Basically a directory in Line 204 in ed9507f
Given the funnel's that Embroider is doing: new Funnel(someInput, {
allowEmpty: true,
srcDir: 'vendor',
destDir: 'vendor',
}); If you run that code from within a directory that has a The real issue is over in https://github.com/SparshithNR/fs-merger/blob/57b5bc5a6131b848fe8bf982261d676cfb85654e/src/index.ts#L66-L102. Working on failing tests over there now. |
allowEmpty
along with missing srcDir
when using a destDir
broccoli-funnel
operation
I've bumped broccoli-plugin to ensure that we have at least [email protected], and the tests pass now. |
A directory in
process.cwd()
with the same name as the specifiedsrcDir
will fake out this line:broccoli-funnel/index.js
Line 204 in ed9507f
Given the funnel's that Embroider is doing:
If you run that code from within a directory that has a
vendor
folder the check in Funnel linked above (inputPathExists
) istrue
when it should befalse
.The real issue is over in https://github.com/SparshithNR/fs-merger/blob/57b5bc5a6131b848fe8bf982261d676cfb85654e/src/index.ts#L66-L102. Working on failing tests over there now.
References: