Skip to content
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

Don't output unused dependency messages when compilation fails #1548

Merged
merged 1 commit into from
Mar 8, 2024

Conversation

laurynaslubys
Copy link
Contributor

Description

When a scala source is malformed, the AST parsing dependency checking step comes back with no/very little dependencies used. It then prints out a bunch of these warnings which are not necessarily true. As a workaround, let's not print the unused dependency warnings if the build has already failed before hand.

Motivation

The printed warnings are potentially misleading and therefore should not be printed.

@liucijus
Copy link
Collaborator

liucijus commented Mar 1, 2024

Thanks, @laurynaslubys! I think build status also needs to be reflected in produced sdeps files. Maybe the file should be produced without dependency entries and have a status field. Status should reflect that dependency analysis has not be done or is incomplete.

…ils.

When a scala source is malformed, the AST parsing dependency checking step comes
back with no/very little dependencies used. It then prints out a bunch of these
warnings which are not necessarily true. As a workaround, let's not print the
unused dependency warnings if the build has already failed before hand.
@laurynaslubys
Copy link
Contributor Author

Good point. I've updated this so we pretend that there are no unused dependencies if the reporter has errors already.

@simuons simuons merged commit 234ad07 into bazelbuild:master Mar 8, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants