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

Configure http proxy before calling Yarn #27793

Closed
rarkins opened this issue Mar 8, 2024 · 1 comment
Closed

Configure http proxy before calling Yarn #27793

rarkins opened this issue Mar 8, 2024 · 1 comment
Assignees
Labels
manager:npm package.json files (npm/yarn/pnpm) priority-2-high Bugs impacting wide number of users or very important features type:feature Feature (new functionality)

Comments

@rarkins
Copy link
Collaborator

rarkins commented Mar 8, 2024

Describe the proposed change(s).

Yarn apparently does not recognize HTTP_PROXY environment variables, and instead requires explicit configuration.

It can be configured like this:

      yarn config set proxy http://proxy.domain.tld:port
      yarn config set https-proxy http://proxy.domain.tld:port

I did not find any "noproxy" support.

We should perhaps set them globally though, so as not to modify any .yarnrc.yml in the repo if it exists.

If the HTTP_PROXY/HTTPS_PROXY strings include credentials in the URL we should make sure we redact them in logs.

Docs: https://yarnpkg.com/configuration/yarnrc#httpProxy

Testing this will require a local http proxy, and Renovate will forward all its requests through it too due to the HTTP_PROXY/HTTPS_PROXY variables being set.

@rarkins rarkins added type:feature Feature (new functionality) priority-2-high Bugs impacting wide number of users or very important features manager:npm package.json files (npm/yarn/pnpm) labels Mar 8, 2024
@rarkins
Copy link
Collaborator Author

rarkins commented Mar 12, 2024

Closed by #27794

@rarkins rarkins closed this as completed Mar 12, 2024
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 12, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
manager:npm package.json files (npm/yarn/pnpm) priority-2-high Bugs impacting wide number of users or very important features type:feature Feature (new functionality)
Projects
None yet
Development

No branches or pull requests

2 participants