Skip to content

Commit 9593c01

Browse files
committed
ci: pin protoc
Signed-off-by: Ettore Di Giacinto <[email protected]>
1 parent 13cfa6d commit 9593c01

File tree

4 files changed

+12
-12
lines changed

4 files changed

+12
-12
lines changed

.github/workflows/release.yaml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,8 @@ jobs:
5757
- name: Build
5858
id: build
5959
run: |
60-
go install google.golang.org/grpc/cmd/protoc-gen-go-grpc@latest
61-
go install google.golang.org/protobuf/cmd/protoc-gen-go@latest
60+
go install google.golang.org/grpc/cmd/protoc-gen-go-grpc@v1.64.0
61+
go install google.golang.org/protobuf/cmd/protoc-gen-go@v1.34.0
6262
export PATH=$PATH:$GOPATH/bin
6363
export PATH=/usr/local/cuda/bin:$PATH
6464
GO_TAGS=p2p make dist
@@ -88,8 +88,8 @@ jobs:
8888
run: |
8989
sudo apt-get update
9090
sudo apt-get install -y --no-install-recommends libopencv-dev protobuf-compiler ccache
91-
go install google.golang.org/grpc/cmd/protoc-gen-go-grpc@latest
92-
go install google.golang.org/protobuf/cmd/protoc-gen-go@latest
91+
go install google.golang.org/grpc/cmd/protoc-gen-go-grpc@v1.64.0
92+
go install google.golang.org/protobuf/cmd/protoc-gen-go@v1.34.0
9393
- name: Build stablediffusion
9494
run: |
9595
export PATH=$PATH:$GOPATH/bin
@@ -122,8 +122,8 @@ jobs:
122122
- name: Dependencies
123123
run: |
124124
brew install protobuf grpc
125-
go install google.golang.org/grpc/cmd/protoc-gen-go-grpc@latest
126-
go install google.golang.org/protobuf/cmd/protoc-gen-go@latest
125+
go install google.golang.org/grpc/cmd/protoc-gen-go-grpc@v1.64.0
126+
go install google.golang.org/protobuf/cmd/protoc-gen-go@v1.34.0
127127
- name: Build
128128
id: build
129129
run: |

.github/workflows/test.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,8 +93,8 @@ jobs:
9393
sudo apt-get install -y cuda-nvcc-${CUDA_VERSION} libcublas-dev-${CUDA_VERSION}
9494
export CUDACXX=/usr/local/cuda/bin/nvcc
9595
96-
go install google.golang.org/protobuf/cmd/protoc-gen-go@latest
97-
go install google.golang.org/grpc/cmd/protoc-gen-go-grpc@latest
96+
go install google.golang.org/protobuf/cmd/protoc-gen-go@v1.34.0
97+
go install google.golang.org/grpc/cmd/protoc-gen-go-grpc@v1.64.0
9898
9999
# The python3-grpc-tools package in 22.04 is too old
100100
pip install --user grpcio-tools

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@ RUN curl -L -s https://go.dev/dl/go${GO_VERSION}.linux-${TARGETARCH}.tar.gz | ta
3333
ENV PATH $PATH:/root/go/bin:/usr/local/go/bin
3434

3535
# Install grpc compilers
36-
RUN go install google.golang.org/protobuf/cmd/protoc-gen-go@latest && \
37-
go install google.golang.org/grpc/cmd/protoc-gen-go-grpc@latest
36+
RUN go install google.golang.org/protobuf/cmd/protoc-gen-go@v1.34.0 && \
37+
go install google.golang.org/grpc/cmd/protoc-gen-go-grpc@v1.64.0
3838

3939
COPY --chmod=644 custom-ca-certs/* /usr/local/share/ca-certificates/
4040
RUN update-ca-certificates

docs/content/docs/getting-started/build.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,8 @@ apt install cmake golang libgrpc-dev make protobuf-compiler-grpc python3-grpc-to
5555
After you have golang installed and working, you can install the required binaries for compiling the golang protobuf components via the following commands
5656

5757
```bash
58-
go install google.golang.org/protobuf/cmd/protoc-gen-go@latest
59-
go install google.golang.org/grpc/cmd/protoc-gen-go-grpc@latest
58+
go install google.golang.org/protobuf/cmd/protoc-gen-go@v1.34.0
59+
go install google.golang.org/grpc/cmd/protoc-gen-go-grpc@v1.64.0
6060

6161
```
6262

0 commit comments

Comments
 (0)