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

bazel: in check.sh, restrict grep to pkg #83866

Merged
merged 1 commit into from
Jul 6, 2022

Conversation

rickystewart
Copy link
Collaborator

@rickystewart rickystewart commented Jul 5, 2022

You can optionally configure git grep to recurse into submodules, in
which case this check returns false positives. Here we restrict the
search to the pkg directory which is all we care about.

Release note: None

@rickystewart rickystewart requested a review from mari-crl July 5, 2022 22:58
@rickystewart rickystewart requested a review from a team as a code owner July 5, 2022 22:58
@cockroach-teamcity
Copy link
Member

This change is Reviewable

Copy link
Contributor

@matthewtodd matthewtodd left a comment

Choose a reason for hiding this comment

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

Thanks, @rickystewart! On your suspicion that it was something about the git version, I checked my config, and indeed I had set submodule.recurse for visibility into changes in my vim plugins. Oops. Seems like restricting this grep is still a good idea.

You can optionally configure `git grep` to recurse into submodules, in
which case this check returns false positives. Here we restrict the
search to the `pkg` directory which is all we care about.

Release note: None
@rickystewart
Copy link
Collaborator Author

bors r=matthewtodd

@craig
Copy link
Contributor

craig bot commented Jul 6, 2022

Build failed (retrying...):

@craig
Copy link
Contributor

craig bot commented Jul 6, 2022

Build failed (retrying...):

@craig
Copy link
Contributor

craig bot commented Jul 6, 2022

Build failed:

@rickystewart
Copy link
Collaborator Author

bors r=matthewtodd

@craig
Copy link
Contributor

craig bot commented Jul 6, 2022

Build succeeded:

@craig craig bot merged commit 7cfa5d4 into cockroachdb:master Jul 6, 2022
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