From 008785f5b5eb50246266038baa604edf0b05f46b Mon Sep 17 00:00:00 2001 From: Sebastiaan van Stijn Date: Mon, 10 Jul 2017 14:31:57 -0700 Subject: [PATCH] pin vndr to 9909bb2b8a0b7ea464527b376dc50389c90df587 This make updating vndr a deliberate action, and prevents updates to vndr from making the vendor validation fail in CI. Signed-off-by: Sebastiaan van Stijn --- dockerfiles/Dockerfile.dev | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/dockerfiles/Dockerfile.dev b/dockerfiles/Dockerfile.dev index aef37382c8..98e6986706 100644 --- a/dockerfiles/Dockerfile.dev +++ b/dockerfiles/Dockerfile.dev @@ -3,8 +3,11 @@ FROM golang:1.8.3-alpine RUN apk add -U git make bash coreutils -RUN go get github.com/LK4D4/vndr && \ - cp /go/bin/vndr /usr/bin && \ +ARG VNDR_COMMIT=9909bb2b8a0b7ea464527b376dc50389c90df587 +RUN git clone https://github.com/LK4D4/vndr.git "/go/src/github.com/LK4D4/vndr" && \ + cd "/go/src/github.com/LK4D4/vndr" && \ + git checkout -q "$VNDR_COMMIT" && \ + go build -v -o /usr/bin/vndr . && \ rm -rf /go/src/* /go/pkg/* /go/bin/* RUN go get github.com/jteeuwen/go-bindata/go-bindata && \