-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* use v2 of buf config template. generate google.rpc types that were missing. * regenerating types made essentially whitespace changes. I am not attached to these, just committing them since they were automatic. * update the buf CI action to support buf v2 configs * only run buf-action setup, not all its default stuff. also check google rpc generated code. * Ignore google rpc generated folder * bump version to 1.0.1
- Loading branch information
1 parent
069127f
commit db8ebc6
Showing
20 changed files
with
475 additions
and
120 deletions.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -93,12 +93,16 @@ jobs: | |
run: | | ||
mix escript.install hex protobuf --force | ||
echo "/home/runner/.mix/escripts" >> $GITHUB_PATH | ||
- uses: "bufbuild/[email protected]" | ||
- uses: "bufbuild/buf-action@v1" | ||
with: | ||
setup_only: true | ||
- name: "Generate & Diff Protos" | ||
run: | | ||
echo "/home/runner/.mix/escripts" >> $GITHUB_PATH | ||
./buf.gen.yaml | ||
mix format authzed/**/*.ex | ||
mix format google/rpc/**/*.ex | ||
bash -c '[[ $(diff -qr authzed/api lib/api | grep "Only in authzed") -eq 0 ]]' | ||
bash -c '[[ $(diff -qr google/rpc lib/google/rpc | grep "Only in google") -eq 0 ]]' | ||
mix format | ||
rm -rf authzed |
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 |
---|---|---|
|
@@ -27,3 +27,4 @@ authzed_ex-*.tar | |
|
||
# Ignore buf generated schema | ||
authzed/* | ||
google/* |
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 |
---|---|---|
@@ -1,8 +1,12 @@ | ||
#!/usr/bin/env -S buf generate buf.build/authzed/api:v1.33.0 --template | ||
#!/usr/bin/env -S buf generate --template | ||
--- | ||
version: "v1" | ||
version: "v2" | ||
plugins: | ||
- name: "elixir" | ||
- local: "protoc-gen-elixir" | ||
out: "." | ||
opt: | ||
- plugins=grpc | ||
inputs: | ||
- module: "buf.build/authzed/api:v1.33.0 " | ||
- module: "buf.build/googleapis/googleapis" | ||
|
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
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
Oops, something went wrong.