File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed
Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -83,16 +83,15 @@ COPY go.mod go.sum ./
8383RUN go mod download
8484
8585# Install go protoc plugins
86- # no required module provides package google.golang.org/grpc/cmd/ protoc-gen-go-grpc
87- # to add it run `go get google.golang.org/grpc/cmd/protoc-gen-go-grpc`
86+ # protoc-gen-go-grpc is a separate module with its own versioning (not the same as grpc)
87+ # v1.5.1 is the last version compatible with Go 1.23; v1.6.0+ requires Go 1.24+
8888ENV GOPATH $HOME/go
8989ENV PATH $GOPATH/bin:$PATH
9090RUN true \
91- && go get google.golang.org/grpc/cmd/protoc-gen-go-grpc \
9291 && go install google.golang.org/protobuf/cmd/protoc-gen-go \
93- google.golang.org/grpc/cmd/protoc-gen-go-grpc \
92+ && go install google.golang.org/grpc/cmd/protoc-gen-go-grpc@v1.5.1 \
9493 && protoc-gen-go --version \
95- && true
94+ && protoc-gen-go-grpc --version
9695
9796# Download and initialize the pre-commit environments before copying the source so they will be cached
9897COPY .pre-commit-config.yaml ./
You can’t perform that action at this time.
0 commit comments