--bazel ignoring --cache-dir
Open
Nobody has claimed this yet.
bug
- Dominant language
- Python
- Stars
- 20.6k
- Forks
- 3.3k
- PR merge metrics
- PR metrics pending
Description
Bug Report
If I run mypy --bazel --cache-dir .foo, all of the *.meta.json and *.data.json end up in CWD and below, instead of in .foo.
To Reproduce
(Write your steps here:)
- `mypy --bazel --cache-dir .foo ...
- Weep
Expected Behavior
The cache files would end up in .foo.
Actual Behavior
Kablammo all over CWD with JSON files and subdirs.
Your Environment
- Mypy version used: 0.980
- Mypy command-line flags:
--cache-dir .foo --bazel - Mypy configuration options from
mypy.ini(and other config files): N/A - Python version used: Py 3.8
- Operating system and version: Ubuntu 20
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by locating the command-line handling for --bazel and --cache-dir, then reproduce the reported command with a small project. The fix is complete when the .meta.json and .data.json cache files produced by --bazel are placed under .foo rather than the current working directory.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- build-system, cli
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 42/100