mirror of
https://github.com/hanzoai/tasks.git
synced 2026-10-04 02:04:03 +00:00
## What changed? - Remove `proto/api` submodule. - Adds a new program that's automatically run by the Makefile as required to output the api protos in binary form, which can be used by most tools. The command is run by `go run` and uses the same api-go reference as the rest of the server for the source protos. - Removed http annotations from internal matchingservice proto. ## Why? - Ensure that the api-go import (in go.mod) and the proto files imported by this repo's proto files are always in sync. - Simplify update process, stop having to mess with submodules. ## How did you test it? running commands manually a lot ## Potential risks Importing protos from somewhere other than our api and google well-known protos may require some updates to the script's import path logic. ## Documentation updated docs
13 lines
208 B
Bash
Executable File
13 lines
208 B
Bash
Executable File
#!/bin/sh
|
|
|
|
set -e
|
|
|
|
# Run getproto (go) in a loop until it successfully resolves all imports
|
|
while :; do
|
|
out=$(go run ./cmd/tools/getproto "$@")
|
|
ret=$?
|
|
if [ "$out" != "<rerun>" ]; then
|
|
exit $ret
|
|
fi
|
|
done
|