Skip to content

Conversation

@mhucka
Copy link
Collaborator

@mhucka mhucka commented Nov 8, 2025

I missed this file in PR #948

@github-actions github-actions bot added the size: S 10< lines changed <50 label Nov 8, 2025
Copy link

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request reformats cuquantum_configure.bzl using Buildifier, which improves code style and consistency. The changes are mostly cosmetic, involving whitespace and line breaks. While reviewing the formatting changes, I noticed a pre-existing issue in the _find_file function. The find command is not correctly structured to exclude dot-directories as was likely intended. I've provided a suggestion to fix this logic.

From the review comment by Gemini Code Assist on GitHub:

> The find command has a logic error. The `-quit` primary causes find to
> exit immediately after printing the first match, so the subsequent
> `-not -path "'*/.*'"` condition is never evaluated. This means the
> intended filtering of dot-directories (like `.git`) is not happening.

> Additionally, the single quotes in `"'*/.*'"` are passed literally to
> find, which is incorrect as `repository_ctx.execute` does not use a shell
> to strip them.

> To correctly and robustly exclude dot-directories from the search, the
> command should be modified.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size: S 10< lines changed <50

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant