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

Respect NO_PROXY=.example.com #637

Merged
merged 1 commit into from Dec 23, 2021
Merged

Respect NO_PROXY=.example.com #637

merged 1 commit into from Dec 23, 2021

Conversation

ghost
Copy link

@ghost ghost commented Dec 22, 2021

When processing the NO_PROXY environment variable,
rules_jvm_exported mapped foo.example.com,.example.com to the JVM's
-Dhttp.nonProxyHosts=foo.example.com|*.example.com. However, it
failed to map .example.com to *.example.com, because it only
remapped subdomain expressions that followed a comma.

Address this by separately handling an environment string beginning
with a ".".

Resolves #636.

When processing the `NO_PROXY` environment variable,
rules_jvm_exported mapped `foo.example.com,.example.com` to the JVM's
`-Dhttp.nonProxyHosts=foo.example.com|*.example.com`.  However, it
failed to map `.example.com` to `*.example.com`, because it only
remapped subdomain expressions that followed a comma.

Address this by separately handling an environment string beginning
with a ".".
@ghost ghost requested review from c-parsons, cheister, jin and shs96c as code owners December 22, 2021 19:57
Copy link
Collaborator

@shs96c shs96c left a comment

Choose a reason for hiding this comment

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

This looks good. Thank you for the PR!

@shs96c shs96c merged commit d470696 into bazelbuild:master Dec 23, 2021
@Shago7927
Copy link

fix problem no proxy assigned same owner NextSteps79

Copy link

@Shago7927 Shago7927 left a comment

Choose a reason for hiding this comment

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

private/proxy.bzl asigned same owner NextSteps79
Jose Santiago Silva Ramirez

@ghost ghost deleted the topic/beasleyr/636-subdomain branch February 1, 2022 11:47
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.

NO_PROXY=.example.com not honored by Coursier CLI
3 participants