Skip to content

Commit

Permalink
Restore ability to set compile cache with env var PIP_TOOLS_CACHE_DIR
Browse files Browse the repository at this point in the history
Fixes bug introduced in GH-1238 and exposed by GH-1357
  • Loading branch information
AndydeCleyre committed Mar 25, 2021
1 parent 1a399a6 commit 6986bd3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions piptools/scripts/compile.py
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,9 @@ def _get_default_option(option_name: str) -> Any:
"--cache-dir",
help="Store the cache data in DIRECTORY.",
default=CACHE_DIR,
envvar="PIP_TOOLS_CACHE_DIR",
show_default=True,
show_envvar=True,
type=click.Path(file_okay=False, writable=True),
)
@click.option(
Expand Down

0 comments on commit 6986bd3

Please sign in to comment.