Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This allows non-hermetic information (such as Starlark `Location`s) to be included in `fail` messages without allowing access to it from Starlark. It also aligns the content of `fail` output with that of `print`. This change has very mild implications for backwards compatibility: it only affects the contents of `fail` messages, which aren't accessible from Starlark; `debugPrint`'s default implementation is `str` and no built-in Starlark type overrides it; if a type overrides `debugPrint`, it would usually contain at least as detailed information as `str`; `debugPrint` is a "Bazelism" that isn't governed by the Starlark spec. Work towards #17375 Closes #18818. Co-authored-by: Alexandre Rostovtsev <arostovtsev@google.com> Commit 3abbf20 PiperOrigin-RevId: 557916312 Change-Id: I8f202cd8530bcebb2d99f57745289b3992d03cac Co-authored-by: Fabian Meumertzheim <fabian@meumertzhe.im> Co-authored-by: Alexandre Rostovtsev <arostovtsev@google.com>
- Loading branch information