curved-manchester-66006
05/12/2023, 7:41 PMnamed_caches_dir = '.cache/pants/named_caches'
. This worked fine, but recently while trying to merge two repositories we ended up with a .gitignore
setting of .cache
(that is matching the named_caches_dir
). Pants then... mostly seems to work but does whacky things like AttributeError: module 'pendulum' has no attribute 'tz'
(where pendulum totally has said attribute) when running some goals.
part of the short term answer can be "dont' do that", but:
• A cache seems like a reasonable thing to want to gitignore.
• I'm not sure what other bugs might be latentbroad-processor-92400
05/12/2023, 9:37 PMbroad-processor-92400
05/12/2023, 9:49 PMcurved-manchester-66006
05/13/2023, 12:47 AM.Is something else writing to/making changes in .cache?None of the code being run (the unit tests) is writing there.
Does the problem persist if you rename the pants one to .pants-cache or similar?Amusingly
.pants-cache
is also matched by a gitignore rule in this repository. But the problem does go away with named_caches_dir = '.los-pantalones-cache/pants/named_caches'
> (And for the second one, if doesn’t persist, does adding .pants-cache to .gitignore make it pop up again?)
Yes adding .los-pantalones-cache*
to .gitignore
causes the error to reoccur.
In case it helps (with the failure):
$ find .los-pantalones-cache -iname pendulum
.los-pantalones-cache/pants/named_caches/pex_root/venvs/747154802a68bcb895f4a6b7cf72ae22f0b79821/a0667c3b93616650d128c0fb95a0e63dda357018/lib/python3.10/site-packages/pendulum
.los-pantalones-cache/pants/named_caches/pex_root/installed_wheels/c42051da34b4b8ffb6575354a454a5472dbd414744f063d8e1c63ce45209bdb3/pendulum-2.1.2-cp310-cp310-manylinux_2_36_x86_64.whl/pendulum
$ tree .los-pantalones-cache/pants/named_caches/pex_root/venvs/747154802a68bcb895f4a6b7cf72ae22f0b79821/a0667c3b93616650d128c0fb95a0e63dda357018/lib/python3.10/site-packages/pendulum
.los-pantalones-cache/pants/named_caches/pex_root/venvs/747154802a68bcb895f4a6b7cf72ae22f0b79821/a0667c3b93616650d128c0fb95a0e63dda357018/lib/python3.10/site-packages/pendulum
├── _extensions
│ └── _helpers.cpython-310-x86_64-linux-gnu.so
├── parsing
│ └── _iso8601.cpython-310-x86_64-linux-gnu.so
└── py.typed
2 directories, 3 files
So somehow the .py files are "missing"? I was sort of hoping there was an obvious negation error in src/rust/engine/fs/src/gitignore.rs
or something but this continues to look spooky.broad-processor-92400
05/13/2023, 3:58 AMcurved-manchester-66006
05/15/2023, 8:21 PM