-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
chore(internal/postprocessor): add MoveSnippets to main.go #7523
chore(internal/postprocessor): add MoveSnippets to main.go #7523
Conversation
internal/postprocessor/main.go
Outdated
dirs := c.getDirs() | ||
for _, dir := range dirs { | ||
|
||
snpDirs, err := filepath.Glob(filepath.Join(dir, "api*", "internal")) |
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.
I would use apiv
to reduce the chance of false positives. Did you test this locally to see if this would only trigger as expected?
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.
Done, thanks!
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.
See Pr desc for local test confirmation.
|
Tested updates locally with:
Output as expected, no errors. |
3b27dde
to
42c17aa
Compare
@quartzmo can you update the hash for the postprocessor to include these changes |
…Snippets * delete postprocessor/snippets.go refs: googleapis#7523
This is a temporary change to delete generated snippets until we are ready to process them.
Tested locally by adding an
internal/snippets
directory to onlykms/apiv1
, then running over all modules, to confirm that Glob pattern does not gather unwanted paths.