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

Add ability to use PathToUnderscores in proto to Swift gen #919

Merged

Conversation

mattrobmattrob
Copy link
Contributor

Add the ability to provide --features swift.generate_path_to_underscores_from_proto_files to change the FileNaming param passed to protoc from FullPath to PathToUnderscores.

Fixes #552.

@mattrobmattrob
Copy link
Contributor Author

I'd be surprised if this is the best way to get this information piped all the way to here but the aspect implementation makes it a bit odd, from my perspective. Please let me know if there's a better way and then I can update the comments/docs and add a test(s).

@mattrobmattrob mattrobmattrob force-pushed the mr/protoc.arg.PathToUnderscore.option branch 2 times, most recently from f0957a3 to a227d61 Compare October 12, 2022 19:31
@mattrobmattrob mattrobmattrob marked this pull request as ready for review October 12, 2022 19:33
@keith
Copy link
Member

keith commented Oct 12, 2022

I'm supportive of being flexible here. Can you add a test so we make sure it doesn't regress? (I don't know how hard that will be since I think this is under tested now)

@mattrobmattrob mattrobmattrob changed the title [RFC] Add ability to use PathToUnderscores in proto to Swift gen Add ability to use PathToUnderscores in proto to Swift gen Oct 13, 2022
test/proto_tests.bzl Outdated Show resolved Hide resolved
@mattrobmattrob mattrobmattrob requested review from keith and removed request for brentleyjones, segiddins, BalestraPatrick and thii October 26, 2022 17:45
Add the ability to provide `--features swift.generate_path_to_underscores_from_proto_files` to change the `FileNaming` param passed to protoc from `FullPath` to `PathToUnderscores`.

Fixes bazelbuild#552.
@mattrobmattrob mattrobmattrob force-pushed the mr/protoc.arg.PathToUnderscore.option branch from 861a532 to cb8f9b8 Compare October 26, 2022 17:46
@keith keith merged commit a773474 into bazelbuild:master Oct 26, 2022
@mattrobmattrob mattrobmattrob deleted the mr/protoc.arg.PathToUnderscore.option branch October 26, 2022 18:10
tymurmustafaiev pushed a commit to tymurmustafaiev/rules_swift that referenced this pull request Jul 19, 2023
…ild#919)

Add the ability to provide `--features
swift.generate_path_to_underscores_from_proto_files` to change the
`FileNaming` param passed to protoc from `FullPath` to
`PathToUnderscores`.

Fixes bazelbuild#552.
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.

[swift_proto_library]filenames are used to distinguish private declarations with the same name
2 participants