-
Notifications
You must be signed in to change notification settings - Fork 2.1k
pin vndr to 9909bb2b8a0b7ea464527b376dc50389c90df587 #318
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -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 . && \ | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Isn't this going to break as soon as
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
I assume it would vendor that dependency, but it's a ood point; I took the same approach as is used in moby/moby, so we may want to modify the approach there as well |
||
| rm -rf /go/src/* /go/pkg/* /go/bin/* | ||
|
|
||
| RUN go get github.com/jteeuwen/go-bindata/go-bindata && \ | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should go in
hack/dockerfile/binaries-commitshack/dockerfile/install-binaries.shwill override this version otherwiseThere was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@mlaventure this is the docker/cli repo, there's no
hack/dockerfile/binaries-commits, so I just put it in the dockerfileThere was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🤦♂️
Indeed 😅