Hi, I’m using pex 2.1.10, When passing multiple i...
# pex
b
Hi, I’m using pex 2.1.10, When passing multiple indexes to
pex.resolver.resolve
, it will trigger a warning WARNING: Refusing to set -H / --header option(s) because multiple index URLs are configured, which might be from https://github.com/pantsbuild/pex/blob/451977efdf987dd299a1b4798ac2ee298cd6d61b/pex/vendor/_vendored/pip/pip/_internal/cli/req_command.py#L86-L89 I don’t have this warning with pex 2.1.9.
w
interesting. are you configuring any headers?
b
no
w
ah, ok. i think i see what is happening. pex now includes one default header to enable caching: https://github.com/pantsbuild/pex/blob/451977efdf987dd299a1b4798ac2ee298cd6d61b/pex/pip.py#L146-L149https://github.com/pantsbuild/pex/pull/974
👍 1
i’ll file an issue
❤️ 2
b
thanks
w