rules_python
rules_python copied to clipboard
sphinxdocs .serve does not work when --symlink_prefix is set
🐞 bug report
Affected Rule
https://github.com/bazel-contrib/rules_python/blob/7c6b109db7e7fdece78561dc62ef8f7c92185734/sphinxdocs/private/sphinx.bzl#L187-L196
Description
When using sphinx_docs to define my_docs, running bazel run //my_docs.serve outputs
Serving directory: /home/me/.../my-project/bazel-out/k8-dbg/bin/my_docs/_build/html
This works, until I use a different symlink prefix (https://bazel.build/reference/command-line-reference#build-flag--symlink_prefix). With a different symlink prefix, the served directory bazel-out does not exist which leads to a 404 error.
🌍 Your Environment
Operating System:
Ubuntu 24.04.3 LTS
Output of bazel version:
bazel 8.4.2
Rules_python version:
1.6.3