-
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
Remove autoload warnings, improve errors and fix legacy repo name support #24601
base: master
Are you sure you want to change the base?
Conversation
This reduces noise while giving users more actionable information when they actually use a symbol that failed to autoload.
FYI @keith Based on the test, it looks like |
@bazel-io flag |
huh i hadn't seen that test at all..im not sure |
The same may be true for protobuf. |
src/main/java/com/google/devtools/build/lib/packages/AutoloadSymbols.java
Outdated
Show resolved
Hide resolved
I tried adding |
@comius I think I'm close to getting something to work, I'll push an update soon. |
@comius Protobuf depends on |
function test_missing_necessary_repo_fails() { | ||
# Intentionally not adding apple_support to MODULE.bazel (and it's not in MODULE.tools) | ||
cat > WORKSPACE << EOF | ||
workspace(name = "test") | ||
# TODO: protobuf's WORKSPACE macro has an unnecessary dependency on build_bazel_apple_support. |
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.
This should be fixed at some point, but doesn't matter too much right now as apple_support
doesn't have any of the Starlarkified rules yet.
@bazel-io fork 8.1.0 |
@bazel-io fork 8.0.1 |
@comius Friendly ping |
This reduces noise while giving users more actionable information when they actually use a symbol that failed to autoload.
Also ensures that modules with legacy repo names (
com_google_protobuf
andbuild_bazel_apple_support
) are handled correctly.Fixes #23929
Fixes #24597