Skip to content

Commit d33966c

Browse files
authored
RHOAIENG-41310: Fix build: protoc-gen-go-grpc requires go 1.24 (#131)
1 parent 85f7efe commit d33966c

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

Dockerfile

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -83,16 +83,15 @@ COPY go.mod go.sum ./
8383
RUN 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+
8888
ENV GOPATH $HOME/go
8989
ENV PATH $GOPATH/bin:$PATH
9090
RUN 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
9897
COPY .pre-commit-config.yaml ./

0 commit comments

Comments
 (0)