Open thejcannon opened 2 years ago
How would y'all feel about returning the cache dir if it's been set explicitly?
This seems to be working
https://github.com/ph03/mypy/commit/093ad466502fa7ff2e33875606cf51aa7ef37388
and I was able to use an "external" cache folder from bazel using --sandbox_writable_path
and passing --test_env=MYPY_CACHE_DIR=XXX
for the target cache folder. But I'm not sure if there are other implications (like "bad" cache entries this way, as likely this option was set on purpose?)
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:)
Expected Behavior
The cache files would end up in
.foo
.Actual Behavior
Kablammo all over CWD with JSON files and subdirs.
Your Environment
--cache-dir .foo --bazel
mypy.ini
(and other config files): N/A