fix(scripts): install Go 1.25.3 in pre-commit container and fix formatting
This commit is contained in:
@@ -30,11 +30,20 @@ docker run --rm \
|
||||
-w /workspace \
|
||||
"$IMAGE_NAME:latest" \
|
||||
sh -c "
|
||||
echo '📦 Installing Go and required tools...'
|
||||
apk add --no-cache go protobuf protobuf-dev bash git || exit 1
|
||||
echo '📦 Installing Go 1.25.3 and required tools...'
|
||||
apk add --no-cache protobuf protobuf-dev bash git wget tar || exit 1
|
||||
|
||||
# Install Go 1.25.3
|
||||
cd /tmp && \
|
||||
wget -q https://go.dev/dl/go1.25.3.linux-amd64.tar.gz && \
|
||||
tar -C /usr/local -xzf go1.25.3.linux-amd64.tar.gz && \
|
||||
rm go1.25.3.linux-amd64.tar.gz || exit 1
|
||||
|
||||
export PATH=/usr/local/go/bin:\$PATH:/root/go/bin
|
||||
export GOROOT=/usr/local/go
|
||||
export GOPATH=/root/go
|
||||
|
||||
echo '📥 Installing Go protobuf plugins...'
|
||||
export PATH=\$PATH:/root/go/bin
|
||||
go install google.golang.org/protobuf/cmd/protoc-gen-go@latest || exit 1
|
||||
go install google.golang.org/grpc/cmd/protoc-gen-go-grpc@latest || exit 1
|
||||
|
||||
|
||||
Reference in New Issue
Block a user