Include build-directory lock directories in lock scanning#13649
Include build-directory lock directories in lock scanning#13649Sudha247 wants to merge 1 commit intoocaml:mainfrom
Conversation
Signed-off-by: Sudha Parimala <sudharg247@gmail.com>
|
I think your fix doesn't really work. It doesn't declare dependencies correctly on what is being read. |
You're right! I was discussing this with @Leonidas-from-XIV today, and we realised the same as well. This actually doesn't solve the problem because the dependencies become untracked. However, we are also unclear about the way forward. Do you have any ideas? So, this part of the code is assuming the lock directory is outside the build directory, but the lock directory of the dev tools is within the build directory. Hence, adding config to the dev tools lock directory is triggering this bug. One idea @Leonidas-from-XIV suggested is we could perhaps copy the contents of the dev tools lock directory to somewhere outside the build temporarily and read from there, but we're not sure that's the best solution. We also discovered this case is not covered in the test suite. I'll add it in a separate PR. |
|
To clarify, my suggestion was to list all files of the lock directory in the lock directory in a known location ( |
While testing #13595 with OxCaml projects, I discovered that configuring lock directories within
_buildisn't working --This patch adds support for configuring lock directories within
_build. But the question also remains, is this the desirable way to configure dev tools or do we ask users to create a lock directory outside of_build.