You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using the backtracking resolver, the custom cache dir flag appears to be ignored.
Environment Versions
Ubuntu 22.04
Python version: 3.11.1
pip version: 22.3.1
pip-tools version: 6.12.1
Steps to replicate
Execute the command pip-compile -v --cache-dir /tmp/pip-cache --resolver=backtracking --upgrade requirements/requirements.in
Expected result
The cache found in /tmp/pip-cache is used.
Actual result
The default cache folder in ~/.cache/pip-tools is used. No files are generated in /tmp/pip-cache.
Note that without the --resolver=backtracking flag, the cache is properly generated and read from the custom path.
The text was updated successfully, but these errors were encountered:
kikones34
changed the title
"--cache-dir" flag is ignored when specifying "
"--cache-dir" flag is ignored when specifying "--resolver=backtracking"
Jan 10, 2023
New resolver uses the pip cache so you can override cache-dir by using pip-args
--pip-args "--cache-dir=/tmp/pip-cache"
That worked, thank you! I suggest maybe showing a warning if you try to use --cache-dir together with the --resolver=backtracking flag, as it's quite confusing that it gets silently ignored.
When using the backtracking resolver, the custom cache dir flag appears to be ignored.
Environment Versions
Steps to replicate
Execute the command
pip-compile -v --cache-dir /tmp/pip-cache --resolver=backtracking --upgrade requirements/requirements.in
Expected result
The cache found in
/tmp/pip-cache
is used.Actual result
The default cache folder in
~/.cache/pip-tools
is used. No files are generated in/tmp/pip-cache
.Note that without the
--resolver=backtracking
flag, the cache is properly generated and read from the custom path.The text was updated successfully, but these errors were encountered: