python / python/mypy

--bazel ignoring --cache-dir

Open
#13,216 3 comments 1 reaction 0 assignees View on GitHub

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:)

  1. `mypy --bazel --cache-dir .foo ...
  2. 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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.