Skip to content

Tox passenv by default only passes HTTP_PROXY but not http_proxy #2372

Closed
@poggenhans

Description

@poggenhans

According to the docs, tox passenv is case insensitive. Apparently this is not the case for variables passed through by default. This means that e.g. HTTP_PROXY will be forwarded by default, but not http_proxy. This is a problem because some linux programs look for the upper-case version (e.g. pip) and some for the lower-case version (e.g. apt and git).

This problem can be worked around by explicitly setting passenv = HTTP_PROXY HTTPS_PROXY, because then tox will also include the lower-case pendants, but this feels a bit counter-intuitive.

I'd propose to either include the lower-cased proxy variables into the list of default variables (and clarify in the docs that case-insensitivity doesn't apply for default variables) or treat all default variables as case insensitive. I can also prepare a PR for any of the two solutions if desired.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions