chore: update dependencies and enhance gRPC services

- Updated various dependencies in go.mod and go.sum files, including cloud.google.com/go/compute/metadata to v0.5.2, google.golang.org/grpc to v1.69.2, and google.golang.org/protobuf to v1.36.1.
- Refactored gRPC service definitions to use the latest protoc-gen-go and protoc versions, ensuring compatibility with the latest gRPC-Go features.
- Introduced a new logger utility in core/utils/logger.go to improve logging capabilities across the application.
- Added a README.md for gRPC setup and compilation guidance, enhancing developer experience.
- Improved the Python installation script to handle version listing more effectively and ensure user-specific environment setup.
This commit is contained in:
Marvin Zhang
2024-12-25 17:46:49 +08:00
parent f03b346ba3
commit 17f8917d0a
25 changed files with 779 additions and 1222 deletions

View File

@@ -40,7 +40,9 @@ setup_pyenv() {
# Install pyenv if not already installed
if [ ! -d "$HOME/.pyenv" ]; then
curl https://pyenv.run | bash
fi
if [ ! -f "$HOME/.pyenv-env.sh" ]; then
# Create a file in $HOME/.pyenv-env.sh
cat > $HOME/.pyenv-env.sh << 'EOF'
export PYENV_ROOT="$HOME/.pyenv"
@@ -136,9 +138,9 @@ case $command in
"list")
setup_pyenv
pyenv versions
pyenv install --list | awk '/^ [23]/ {print $1}' | grep -v "[a-zA-Z]" | tac
;;
*)
print_usage
exit 1