Skip to content

Commit bafd642

Browse files
committed
Lock protoc-gen-go to 1.0 release
Noticed that this library wasn't locked to a version, so when I attempt to regen the code, I got some incompatible code. This fixes things.
1 parent ffd182e commit bafd642

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

build/build-image/Dockerfile

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,10 +52,15 @@ RUN curl -L ${HELM_URL} > /tmp/helm.tar.gz \
5252
&& rm /tmp/helm.tar.gz && rm -rf /tmp/linux-amd64
5353
RUN echo "source <(helm completion bash)" >> /root/.bashrc
5454

55+
# install go-proto-gen 1.0
56+
RUN mkdir -p /go/src/github.com/golang && cd /go/src/github.com/golang && \
57+
git clone https://github.com/golang/protobuf.git && \
58+
cd protobuf && git checkout v1.0.0 && \
59+
go install github.com/golang/protobuf/protoc-gen-go
60+
5561
# install go tooling for development, building and testing
5662
RUN go get -u github.com/golang/dep/cmd/dep && \
5763
go get -u github.com/alecthomas/gometalinter && \
58-
go get -u github.com/golang/protobuf/protoc-gen-go && \
5964
/go/bin/gometalinter --install
6065

6166
# install the release branch of the code generator tools

0 commit comments

Comments
 (0)