I’m having trouble making updates to BUILD files f...
# general
m
I’m having trouble making updates to BUILD files for python code. I’m adding a new project into a monorepo that already had pants configured for a basic project. I generated build files for the new code using pants tailor but any updates to build files are not reflecting. (Examples: changing the name in python_tests does not actually change the name, adding/removing/changing versions for requirements doesn’t reflect and instead pants continues to use the initial requirements file that was used). Has anyone run into this? Is there a command I’m missing after making changes to BUILD or a cache that needs to be cleared. I’m using pants 2.15 and python 3.8 with Ubuntu 20.04 on windows 10.
w
Pants’ file watching won’t work if your checkout is outside of your WSL session… could that be the issue?
m
I was editing using an IDE. But I just tried to make a change with vim in a separate Ubuntu window then run pants from the same window and it appears the same issue is occurring.
e
The key here is not where the ide / editor is located relative to the code, but where the source code itself is located. It must be inside the Ubuntu VM and not under C:\, etc.
@many-parrot-99202 in other words the code must be checkout out under \\wsl.localhost\... and not under C:\... or any other windows drive.