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
build: allow to customize tmpdir #7243
Conversation
hum checks are failing for a non related thing. |
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 option is named tmpdir
but it should be tmpDir
to match the casing convention.
If we want to do this then introducing an environment variable like PUPPETEER_TMP_DIR
seems like a cleaner option.
The patch would also need to include a test and the relevant changes to documentation. WDYT?
ops, fixed the camel case naming 🙂 I'm not sure about |
If the path changes over time and your code knows about it, can't you have it update the |
@mathiasbynens done at 083ea5f Do you think it could be moved into a common, so it just could be declared once? |
This commit adds drag-and-drop support, leveraging new additions to the CDP Input domain (Input.setInterceptDrags, Input.dispatchDragEvent, and Input.dragIntercepted).
@mathiasbynens Can I do something to move this PR forward? 🙂 |
The diff seems to include lots of unrelated changes. Could you please check? |
@mathiasbynens updated 👍 |
@mathiasbynens all green now 🙂 |
03a4ca1
to
d4b17bd
Compare
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 you maybe move the implementation of const tmpDir = () => process.env.PUPPETEER_TMP_DIR || os.tmpdir();
into a separate file like helpers.ts
or something similar to reduce code duplication?
I want to do that, I guess I can't just create a file that can be loaded on both parts; am I wrong? |
Ah sorry, I didn't see that one is for Firefox and one in src. In this case, I think this change looks good! |
@jschfflr @mathiasbynens any chance to merge this? it's already approved and tests pass on green 🙂 |
Hello,
This change allows customizing the directory for temporary files, setting up the current behavior as default.
I'm particularly interested in this change because I want to use a memory filesystem (
memfs
) to speed up a bit the puppeteer process.