-
Notifications
You must be signed in to change notification settings - Fork 4.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make module extension tag's debugPrint
useful for error messages
#19274
Conversation
When passed to `print` or `fail`, a module extension tag now results in a string such as `'foo' tag at /ws/MODULE.bazel:3:4`, which can be used to form error messages referencing tags without leaking non-hermetic information to the extension implementation function.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awesome, thanks!
@bazel-io flag |
@bazel-io fork 6.4.0 |
When passed to `print` or `fail`, a module extension tag now results in a string such as `'foo' tag at /ws/MODULE.bazel:3:4`, which can be used to form error messages referencing tags without leaking non-hermetic information to the extension implementation function. Closes bazelbuild#19274. PiperOrigin-RevId: 558163928 Change-Id: If20086c62356bb0635d0a4bdf91029267122f62b
…sages (#19285) When passed to `print` or `fail`, a module extension tag now results in a string such as `'foo' tag at /ws/MODULE.bazel:3:4`, which can be used to form error messages referencing tags without leaking non-hermetic information to the extension implementation function. Closes #19274. Commit cc5889c PiperOrigin-RevId: 558163928 Change-Id: If20086c62356bb0635d0a4bdf91029267122f62b Co-authored-by: Fabian Meumertzheim <fabian@meumertzhe.im> Co-authored-by: Xùdōng Yáng <wyverald@gmail.com>
The changes in this PR have been included in Bazel 6.4.0 RC1. Please test out the release candidate and report any issues as soon as possible. If you're using Bazelisk, you can point to the latest RC by setting USE_BAZEL_VERSION=last_rc. |
When passed to
print
orfail
, a module extension tag now results in a string such as'foo' tag at /ws/MODULE.bazel:3:4
, which can be used to form error messages referencing tags without leaking non-hermetic information to the extension implementation function.