-
Notifications
You must be signed in to change notification settings - Fork 0
fix(proto-gen): fix buf plugin path replacement, GIT_TAG, and generated_dir #135
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
Merged
Merged
Changes from all commits
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
040dbbc
fix(proto-gen): fix buf plugin path replacement, GIT_TAG, and generat…
b-long ad1647f
test(proto-gen): add unit tests and CI job for generate_connect_proto.py
b-long d279d6d
chore: fix ruff linting issues in test_generate_connect_proto.py
b-long 49f00ab
fix(proto-gen): recurse into nested subdirs when creating __init__.py…
b-long d473b8d
chore(proto-gen): update uv.lock with pytest dev dependency
b-long 9765f33
fix(proto-gen): restore default GIT_TAG to service/v0.7.2
b-long a72b84f
tidy comments
b-long 9fe2342
fix(proto-gen): address Gemini review comments
b-long 1ec583d
chore: apply ruff formatting to generate_connect_proto.py
b-long 2e1ccdc
refactor(proto-gen): replace subprocess rm -rf with shutil.rmtree
b-long 6307901
test(proto-gen): test real argparse parser in TestArgParsing
b-long 13e2b7d
fix(build-script): update build_connect_proto.sh for new output direc…
b-long 389c7f2
docs: fix broken link and stale setup instruction
b-long 6849c02
fix: clarify error message and test name from PR review feedback
b-long File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,26 @@ | ||
| #!/usr/bin/env python3 | ||
| """Setup script for Connect RPC dependencies. | ||
|
|
||
| Run this script once to install the required tools before generating proto files: | ||
|
|
||
| uv run python scripts/setup_connect_rpc.py | ||
| """ | ||
|
|
||
| import subprocess | ||
| import sys | ||
|
|
||
|
|
||
| def main(): | ||
| """Install Connect RPC compiler dependencies.""" | ||
| print("Installing Connect RPC dependencies...") | ||
| subprocess.run( | ||
| ["uv", "sync"], | ||
| check=True, | ||
| ) | ||
| print("✓ Connect RPC dependencies installed.") | ||
| print(" Run 'uv run python scripts/generate_connect_proto.py' to generate files.") | ||
| return 0 | ||
|
|
||
|
|
||
| if __name__ == "__main__": | ||
| sys.exit(main()) |
Empty file.
Oops, something went wrong.
Oops, something went wrong.
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.
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 script runs
uv sync, and then ifconnectrpcis not found, it advises the user to runsetup_connect_rpc.py, which also just runsuv sync. This is redundant and potentially confusing.To improve clarity, I suggest removing the
uv syncfrom this build script. The script should focus on generation and assume dependencies are already installed. The existing check forconnect-pythonwill then correctly guide the user to run the setup script if needed.