pin vndr to 9909bb2b8a0b7ea464527b376dc50389c90df587#318
Conversation
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>
Codecov Report
@@ Coverage Diff @@
## master #318 +/- ##
=======================================
Coverage 48.67% 48.67%
=======================================
Files 186 186
Lines 12416 12416
=======================================
Hits 6044 6044
Misses 5997 5997
Partials 375 375 |
|
|
||
| RUN go get github.com/LK4D4/vndr && \ | ||
| cp /go/bin/vndr /usr/bin && \ | ||
| ARG VNDR_COMMIT=9909bb2b8a0b7ea464527b376dc50389c90df587 |
There was a problem hiding this comment.
should go in hack/dockerfile/binaries-commits
hack/dockerfile/install-binaries.sh will override this version otherwise
There was a problem hiding this comment.
@mlaventure this is the docker/cli repo, there's no hack/dockerfile/binaries-commits, so I just put it in the dockerfile
|
LGTM |
| 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 . && \ |
There was a problem hiding this comment.
Isn't this going to break as soon as vndr adds a dependency, since we don't have a go get anywhere here?
go get will also get all the git files, so I think we can use go get to fetch, and still git checkout <sha>
There was a problem hiding this comment.
Isn't this going to break as soon as vndr adds a dependency, since we don't have a go get anywhere here?
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
This make updating vndr a deliberate action, and prevents updates to vndr from making the vendor validation fail in CI.
Pinning to 9909bb2b8a0b7ea464527b376dc50389c90df587, which is current "master", and the same version as is used in moby/moby#34047
ping @tonistiigi @tiborvass @dnephin PTAL