bazel: Source forest creation fails with inconsistently-capitalised path references

I think Bazel doesn’t handle capitalised letters in directories very well, and having some inconsistencies in referencing a directory within BUILD files can lead to this.

ERROR: Source forest creation failed: Command failed cmd.exe /c mklink /J "C:\tools\msys64\var\tmp\Bazel\$KNt4ZiP\execroot\<dir>" "C:\tools\msys64\home\rok\<dir>".

Note that the above <dir> will have the same capitalisation in both cases, which makes this problem even more difficult to debug.

About this issue

  • Original URL
  • State: closed
  • Created 8 years ago
  • Comments: 17 (14 by maintainers)

Most upvoted comments

This looks more likely using the delete function in Bazel’s JNI library. The error message was thrown from here. I had a change to simplify and optimize plantSymlinkForest, but it broke something else and was rollbacked. I will follow up on this.