-
Notifications
You must be signed in to change notification settings - Fork 1k
Conversation
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.
LGTM. cc @leerob @jesec @hipstersmoothie
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.
Needs a test, but then good to go!
I added a test, though I don't understand the directory naming so I named it with this PR number ( This also helped me catch a case I overlooked in the |
Any idea why the pnpm stuff might be failing in CI? |
pnpm has recently been updated to version 6.0.0 , they seems to have droped support for nodejs <= 10.0 A easy fix would be to force a particular version of pnpm or to ignore the test when nodejs <=10 is detected. |
I would skip tests for nodejs <= 10 |
please merge #1122 first , this will fix the issue |
@phated tests are failing here: https://github.com/vercel/pkg/pull/1121/checks?check_run_id=2285145037#step:8:25 |
Sorry about that! I didn't take into account Windows path separators in my RegExp, but I simplified it and now the tests are passing. |
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.
Could this someway fix #1075 ?
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.
LGTM
Very unlikely to be related. By the way: Forgive me for being the “progress blocker” here. While those changes look good to me, IMO we should ship the new binaries before further feature changes. |
@leerob was there anything else you'd want me to do here? |
@phated Wait for the 5.0.0 release then we can merge this :) |
I think this feature needs to be documented in the README.md. |
When I was digging into the project, mountpoints weren't documented at all. Has that changed? |
@phated Could you add some docs about this feature please? I'm ok for this to land and I know there was no doc for this but I would like to make docs better |
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.
requires added documentation in Readme.md
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.
lg2m.
As for the documentation, currently there is no documentation for process.pkg.mount
at all. I think the burden belongs to us maintainers instead of the author of the PR.
I think we can merge this so |
@leerob let's go ! |
Thanks all! |
This adds support for RegExp mountpoints. This can be used like:
This is useful for more complex patterns, like writing files matching the internal snapshot structure to the user's filesystem.