Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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
feat(gazelle): Add "python_test_file_pattern" directive #1819
feat(gazelle): Add "python_test_file_pattern" directive #1819
Changes from 17 commits
056c4e4
ac364d2
a852679
d4b456b
5cbcd67
abe667c
98922c2
f9897b0
a3cc524
cf274c3
a156e2e
f1b66a2
9eb66f4
0f2b9aa
7b7648b
fd21bc9
ca79dfa
17e14d7
19b9a49
5875c2f
df8f967
b14b0dd
d3a5364
988ae8c
4d41e94
58d5571
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This seems to be the most popular
glob
package, though I don't see any github activity in 6 years. Other options were:There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How about
doublestar.Match
? It is used bybazel-gazelle
and is already included in thisgo.mod:9
too.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1 for not adding another dep! Updated.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: there is no need to double severity in the message here as
Fatal
will be already in the log. Also, go's error messages are conventionally lowercased since errors can be wrapped/nested (e.g.something bad happened: directive 'python...
).\n
is also unnecessary.(See https://go.dev/wiki/CodeReviewComments#error-strings)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
TIL, thanks! Updated.
As an FYI, the
ERROR:
and\n
were included to maintain consistency with the otherlog.Fatal
messages:Prior to this PR, 7 of 9 calls included both
ERROR:
and\n
.