https://pantsbuild.org/ logo
#pex
Title
b

bulky-evening-62934

05/13/2020, 7:26 AM
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

witty-crayon-22786

05/13/2020, 3:35 PM
interesting. are you configuring any headers?
b

bulky-evening-62934

05/13/2020, 3:35 PM
no
w

witty-crayon-22786

05/13/2020, 3:40 PM
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

bulky-evening-62934

05/13/2020, 3:42 PM
thanks
w

witty-crayon-22786

05/13/2020, 3:45 PM