| commit | 89d00af0fc57a6c94f0412b832419f1d879f23a2 | [log] [tgz] |
|---|---|---|
| author | Laurens Hobert <10121375+laurenshobert@users.noreply.github.com> | Sun Jan 04 04:18:50 2026 +0100 |
| committer | GitHub <noreply@github.com> | Sun Jan 04 03:18:50 2026 +0000 |
| tree | 882f3a34b64d635f0a56efa1518833dc379c085f | |
| parent | 352f405f6a834da32449838bf04f5ff68a1f86af [diff] |
fix: prevent a 404 error when serving Sphinx docs and Bazel is configured with a --symlink_prefix option (#3492) When Bazel is configured with the [`--symlink_prefix`](https://bazel.build/reference/command-line-reference#build-flag--symlink_prefix) option, the sphinxdocs `.serve` target fails to serve files from the correct directory. This happens because the directory layout under `execroot` and the workspace no longer match, causing the target to miss the generated HTML files. This change updates the logic to use rpathlocation instead, ensuring the correct path is resolved regardless of symlink configuration. Fixes https://github.com/bazel-contrib/rules_python/issues/3410 --------- Co-authored-by: Laurens Hobert <laurens.hobert@gridtogreat.com>
This repository is the home of the core Python rules -- py_library, py_binary, py_test, py_proto_library, and related symbols that provide the basis for Python support in Bazel. It also contains package installation rules for integrating with PyPI and other indices.
Documentation for rules_python is at https://rules-python.readthedocs.io and in the Bazel Build Encyclopedia.
Examples live in the examples directory.
The core rules are stable. Their implementation is subject to Bazel's backward compatibility policy. This repository aims to follow semantic versioning.
The Bazel community maintains this repository. Neither Google nor the Bazel team provides support for the code. However, this repository is part of the test suite used to vet new Bazel releases. See How to contribute page for information on our development workflow.
For detailed documentation, see https://rules-python.readthedocs.io
See Bzlmod support for more details.