Groups keyboard shortcuts have been updated
Dismiss
See shortcuts

Unable to create symlink when upgrading to Bazel 7

159 views
Skip to first unread message

Craig Paris

unread,
Jun 26, 2024, 6:38:55 PM6/26/24
to bazel-discuss
I am trying to upgrade my project to Bazel 7 but on Windows debug builds I am getting the following error when building:

Exec failed due to IOException: Cannot create symlink <filename>.pdb symlink target is a directory, use a junction

I have confirmed that it is a file and not a directory. Could this be related to Bazel? Specifically I am trying 7.0.2 right now.

carpen...@gmail.com

unread,
Jul 17, 2024, 7:13:28 AM7/17/24
to bazel-discuss
Maybe its related to this bug on windows where symlink actions can be scheduled before the action they are creating exists, and because it can't see the target file it doesn't know what type of link Junction vs Symlink to create. 

Tiago Quelhas

unread,
Jul 18, 2024, 4:18:13 AM7/18/24
to carpen...@gmail.com, bazel-discuss
Does the issue go away if you build with `--remote_download_all`?

--
You received this message because you are subscribed to the Google Groups "bazel-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bazel-discus...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/bazel-discuss/346c22f3-b428-4e08-8568-39ccba15923bn%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages