Skip to content
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

fix: Add ENV option to allow legacy ssl for newer node versions and our older webpack #84

Merged

Conversation

mitchcapper
Copy link
Contributor

Closes #76

@CLAassistant
Copy link

CLAassistant commented Aug 1, 2023

CLA assistant check
All committers have signed the CLA.

@pimterry
Copy link
Member

pimterry commented Aug 1, 2023

Hi @mitchcapper. This fixes it for Node 18+, but breaks things for Node 16, which is currently the officially supported version used. That's why the build is failing here.

Node 16 is still supported by the Node.js team for now, the only issue is that it's not the recommended version for new installs on the website at the moment. I definitely intend to upgrade, but there are issues (nodejs/node#48519) that currently make that impossible in other components, so we're sticking with it for now.

Given all that, I think this probably is the right fix, but unless there's some way to make it work for both, it needs to stay unmerged here and wait until we do successfully move to Node 18+ everywhere. That's likely a couple of months from now.

In the meantime, if this is a growing issue, maybe it's worth adding a note to the README to point people in the right direction?

…er webpack

Switch to dynamic ENV file for conditional env vars
Closes httptoolkit#76
@mitchcapper mitchcapper force-pushed the old_webkit_support_newer_node_hack_pr branch from 237afc7 to b71554a Compare August 1, 2023 16:15
@mitchcapper
Copy link
Contributor Author

MB I assumed the command line arg would just be ignored by older versions. Switched to using a javascript to generate the ENV file (native support w/ env-cmd) now use the flag conditionally.

@pimterry pimterry merged commit 9acf2b7 into httptoolkit:main Aug 2, 2023
5 checks passed
@pimterry
Copy link
Member

pimterry commented Aug 2, 2023

Neat! I didn't know env-cmd could do that, that works very nicely, merged 👍

@pimterry
Copy link
Member

pimterry commented Aug 2, 2023

Oh btw in case you're not aware, HTTP Toolkit Pro is free for contributors. I've just set up an account for the base gmail address from your GH profile (m**.c**@gmail.com). If that'd be useful to you, just click 'Get Pro', then 'Log into existing account' to log in. Thanks for contributing!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Local build is broken
3 participants