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

buf lint PACKAGE_DIRECTORY_MATCH support prefix #3554

Open
manXcoder opened this issue Dec 19, 2024 · 0 comments
Open

buf lint PACKAGE_DIRECTORY_MATCH support prefix #3554

manXcoder opened this issue Dec 19, 2024 · 0 comments
Labels
Feature New feature or request

Comments

@manXcoder
Copy link

manXcoder commented Dec 19, 2024

Feature

In the past, we managed proto files like:
aaa/aaa.proto // package name is : com.xxx.aaa

Now, with buf, we need to organize proto files like this:
com/xxx/aaa/aaa.proto

This change is required to comply with the PACKAGE_DIRECTORY_MATCH rule.

While this structure may be helpful for sharing proto files across multiple projects, it results in overly deep directory hierarchies, we need to make quite a few adjustments, especially when the protocol has already been shared with others..

If the PACKAGE_DIRECTORY_MATCH rule supported prefix matching, it would make it much easier to adapt to the buf style.

@manXcoder manXcoder added the Feature New feature or request label Dec 19, 2024
@manXcoder manXcoder reopened this Dec 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant