-
Notifications
You must be signed in to change notification settings - Fork 1
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 planetscale/vitess
module
#365
Merged
Merged
Changes from all commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
16239f1
Add vitess module
unmultimedio fb16f08
Fix fetch references
unmultimedio f4c4ee6
Remove unrelated README change
unmultimedio 26cf081
Merge branch 'main' into jfigueroa/add-vitess-types-module
unmultimedio f5e68ba
Merge remote-tracking branch 'origin/main' into jfigueroa/add-vitess-…
unmultimedio 1be0ac3
Fix dep name in docs
unmultimedio b6af008
Expand rsync options
unmultimedio 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 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 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,13 @@ | ||
**This is a third-party repository managed by Buf.** | ||
|
||
Updates to the [source repository](https://github.com/planetscale/vitess-types) are automatically | ||
synced on a periodic basis, and each BSR commit is tagged with corresponding Git commits. | ||
|
||
To depend on a specific Git commit, you can use it as your reference in your dependencies: | ||
|
||
``` | ||
deps: | ||
- buf.build/planetscale/vitess:<GIT_COMMIT_TAG> | ||
``` | ||
|
||
For more information, see the [documentation](https://docs.buf.build/bsr/overview). |
This file contains 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,2 @@ | ||
version: v1 | ||
name: buf.build/planetscale/vitess |
This file contains 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 @@ | ||
770e14433716a816905f267650191319f7d0515b | ||
This file contains 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,4 @@ | ||
+ LICENSE | ||
+ *.proto | ||
+ */ | ||
- * |
This file contains 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 |
---|---|---|
|
@@ -31,8 +31,27 @@ process_ref() { | |
cp "${module_root}/${git_owner}/${git_repo}/LICENSE" . | ||
fi | ||
|
||
# Copy only curated subset of files from that repo into a tmp module dir. | ||
rsync -amR --include-from="${module_static_path}/rsync.incl" . "${mod_tmp_path}" | ||
# rsync flags: https://linux.die.net/man/1/rsync | ||
rsync_args=( | ||
# Archive mode is a shortcut to preserve files modification times, permissions, recursive | ||
# folders, among others: https://serverfault.com/questions/141773/what-is-archive-mode-in-rsync | ||
--archive | ||
|
||
# Prune empty directory chains from file-list | ||
--prune-empty-dirs | ||
|
||
# Use relative path names | ||
--relative | ||
|
||
# Copy symlinks as content, not as symlinks, it overrides the --links option embedded in | ||
# --archive that copies symlinks as symlinks (eg LICENSE for planetscale/vitess) | ||
--copy-links | ||
|
||
# Copy only curated subset of files from that repo into a tmp module dir using `rsync.incl` file | ||
# on each module's static dir | ||
--include-from="${module_static_path}/rsync.incl" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Nice - this is helpful to see it expanded like this. |
||
) | ||
rsync "${rsync_args[@]}" . "${mod_tmp_path}" | ||
[ ! -e "${module_static_path}/buf.md" ] || cp "${module_static_path}/buf.md" "${mod_tmp_path}" | ||
[ ! -e "${module_static_path}/buf.yaml" ] || cp "${module_static_path}/buf.yaml" "${mod_tmp_path}" | ||
|
||
|
@@ -192,6 +211,7 @@ sync_references commits grpc grpc https://github.com/grpc/grpc-proto | |
sync_references commits grpc-ecosystem grpc-gateway https://github.com/grpc-ecosystem/grpc-gateway | ||
sync_references commits opencensus opencensus https://github.com/census-instrumentation/opencensus-proto src | ||
sync_references commits opentelemetry opentelemetry https://github.com/open-telemetry/opentelemetry-proto | ||
sync_references commits planetscale vitess https://github.com/planetscale/vitess-types src | ||
sync_references commits prometheus client-model https://github.com/prometheus/client_model | ||
sync_references releases protocolbuffers wellknowntypes https://github.com/protocolbuffers/protobuf src | ||
|
||
|
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.
Latest git
main
hash at the moment of opening this PR.