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

apply_fixes: Support cquery and custom bazel arguments #249

Merged
merged 2 commits into from
May 5, 2024

Conversation

martis42
Copy link
Owner

@martis42 martis42 commented May 5, 2024

Until now the apply_fixes script by default uses bazel query to find missing dependencies. A project might use select statements to exchange dependencies. In such cases one should use bazel cquery to allow the apply_fixes script to understand the dependency tree properly. This also requires the user being able to provide arguments to bazel cquery.

Refactoring incorporated into this:

  • Due to the missing dependency discover logic increasing in complexity, we spit it into a separate module
  • We output commands as a single string in verbose mode to ease copying them for debugging

@martis42 martis42 force-pushed the apply_fixes_support_cquery branch from fcee83d to 2a1dabe Compare May 5, 2024 09:31
Until now the apply_fixes script by default uses `bazel query` to find
missing dependencies. A project might use select statements to exchange
dependencies. In such cases one should use `bazel cquery` to allow the
apply_fixes script to understand the dependency tree properly.
This also requires the user being able to provide arguments to `bazel cquery`.

Refactoring incorporated into this:
- Due to the missing dependency discover logic increasing in complexity,
  we spit it into a separate module
- We output commands as a single string in verbose mode to ease copying
  them for debugging
@martis42 martis42 force-pushed the apply_fixes_support_cquery branch from 2a1dabe to b8d911d Compare May 5, 2024 09:32
@martis42 martis42 merged commit acf9551 into main May 5, 2024
11 checks passed
@martis42 martis42 deleted the apply_fixes_support_cquery branch May 5, 2024 09:54
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.

1 participant