We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I'm using buf before cleaning up compiled files with protol
buf
protol
protol --exclude-google-imports --create-package --in-place --python-out ./my-packages buf --buf-path=/usr/local/bin/buf
Using --exclude-google-imports is causing everything to get ignored.
--exclude-google-imports
[source: github]
def _should_ignore(fd_name: str, patterns: Sequence[str]) -> bool: """Return whether `fd_name` should be ignored according to `patterns`. Examples -------- >>> fd_name = "google/protobuf/empty.proto" >>> pattern = "google/protobuf/*" >>> _should_ignore(fd_name, [pattern]) True >>> fd_name = "foo/bar" >>> _should_ignore(fd_name, [pattern]) False """ return any(fnmatch.fnmatchcase(fd_name, pattern) for pattern in patterns)
The * is causing all pattern matches to match.
*
So when exclude_imports_glob += ("google/protobuf/*",) is added. The * is causing everything to match. [source: github]
exclude_imports_glob += ("google/protobuf/*",)
The text was updated successfully, but these errors were encountered:
No branches or pull requests
I'm using
buf
before cleaning up compiled files withprotol
protol --exclude-google-imports --create-package --in-place --python-out ./my-packages buf --buf-path=/usr/local/bin/buf
Using
--exclude-google-imports
is causing everything to get ignored.[source: github]
The
*
is causing all pattern matches to match.So when
exclude_imports_glob += ("google/protobuf/*",)
is added. The*
is causing everything to match. [source: github]The text was updated successfully, but these errors were encountered: