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

feat: add initializeProxy helper for downstream packages #118

Merged
merged 4 commits into from
Oct 26, 2019

Conversation

malept
Copy link
Member

@malept malept commented Sep 6, 2019

Folks are having trouble with using this module behind corporate proxies (example: electron/packager#1019). This pull request adds a method (code borrowed from yeoman) that will add environment variable support. See the new section of the README for details.

Downstream packages I expect to provide PRs for, if this is merged:

  • electron
  • electron-packager
  • @electron-forge/cli
  • fiddle, I think?

https://electronjs.org/docs/tutorial/installation#proxies will have to be modified slightly once electron/electron is updated (not that it's accurate right now anyway...)

Copy link
Member

@MarshallOfSound MarshallOfSound left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is it worth auto calling initializeProxy based on an env var to help out dependant CLI tools.

E.g. ELECTRON_GET_USE_PROXY=1

src/proxy.ts Outdated Show resolved Hide resolved
@malept
Copy link
Member Author

malept commented Sep 6, 2019

Is it worth auto calling initializeProxy based on an env var to help out dependant CLI tools.

Seems reasonable. Not sure how we'd handle this in Fiddle, though.

@MarshallOfSound
Copy link
Member

@malept Fiddle being gui / non-cli would just expose something in settings for this 👍

@jasunbourne
Copy link

@MarshallOfSound Can this be approved?

@MarshallOfSound MarshallOfSound merged commit 49a3181 into master Oct 26, 2019
@MarshallOfSound MarshallOfSound deleted the proxy branch October 26, 2019 05:21
@electron-bot
Copy link
Contributor

🎉 This PR is included in version 1.6.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

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

Successfully merging this pull request may close these issues.

4 participants