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 <github@gone.nl>
This commit is contained in:
Sebastiaan van Stijn 2017-07-10 14:31:57 -07:00
parent a765218f19
commit 008785f5b5
No known key found for this signature in database
GPG Key ID: 76698F39D527CE8C
1 changed files with 5 additions and 2 deletions

View File

@ -3,8 +3,11 @@ FROM golang:1.8.3-alpine
RUN apk add -U git make bash coreutils RUN apk add -U git make bash coreutils
RUN go get github.com/LK4D4/vndr && \ ARG VNDR_COMMIT=9909bb2b8a0b7ea464527b376dc50389c90df587
cp /go/bin/vndr /usr/bin && \ 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/* rm -rf /go/src/* /go/pkg/* /go/bin/*
RUN go get github.com/jteeuwen/go-bindata/go-bindata && \ RUN go get github.com/jteeuwen/go-bindata/go-bindata && \