-
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
Unhelpful error message for missing BUILD file: looks like referenced file is missing instead #7854
Labels
bad error messaging
Issues where users get stuck because they don't understand what they did wrong
Comments
alexeagle
added
the
bad error messaging
Issues where users get stuck because they don't understand what they did wrong
label
Mar 27, 2019
I believe this is fixed by now. With
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
bad error messaging
Issues where users get stuck because they don't understand what they did wrong
User of rules_nodejs hits a problem in bazel-contrib/rules_nodejs#628
In a repository rule, they reference
//:yarn.lock
But there is no BUILD file in the root of the WORKSPACE.
The error ought to say sth like "you referenced a file in /path/to/workspace but there is no BUILD.bazel file there. Fix by creating an empty file there".
Instead the error is
The last line is very misleading because it seems like "I couldn't load package" (users may not know what Bazel means by a "package") and the reason is that the
yarn.lock
file is not found. The user sees that theyarn.lock
file is there, so can't understand how to fix this.The text was updated successfully, but these errors were encountered: