With this change, go packages/modules that use versioned import paths (github.com/foo/bar/v2), but don't use a directory in the repository, can now be supported. For example: ``` github.com/coreos/go-systemd/v22 v22.0.0 ``` will vendor the github.com/coreos/go-systemd repository into `vendor/github.com/coreos/go-systemd/v22`. full diff:b177b583eb...v0.1.0 - LK4D4/vndr#79 Add more clear messages around clone failures - LK4D4/vndr#80 add riscv64 support - LK4D4/vndr#83 migrate bitbucket to api 2.0 - fixes LK4D4/vndr#82 https://api.bitbucket.org/1.0/repositories/ww/goautoneg: 410 Gone - LK4D4/vndr#86 Replace sort.Sort with sort.Strings - LK4D4/vndr#87 support `github.com/coreos/go-systemd/v22` Signed-off-by: Sebastiaan van Stijn <github@gone.nl> (cherry picked from commit7904c23df8) Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
33 lines
1.1 KiB
Docker
33 lines
1.1 KiB
Docker
ARG GO_VERSION=1.13.10
|
|
|
|
FROM golang:${GO_VERSION}-alpine
|
|
|
|
RUN apk add -U git make bash coreutils ca-certificates curl
|
|
|
|
# v0.1.0
|
|
ARG VNDR_SHA=d385c05e4c23b602dd16b3d2a1a6c710919bf02f
|
|
RUN go get -d github.com/LK4D4/vndr && \
|
|
cd /go/src/github.com/LK4D4/vndr && \
|
|
git checkout -q "$VNDR_SHA" && \
|
|
go build -v -o /usr/bin/vndr . && \
|
|
rm -rf /go/src/* /go/pkg/* /go/bin/*
|
|
|
|
ARG ESC_SHA=58d9cde84f237ecdd89bd7f61c2de2853f4c5c6e
|
|
RUN go get -d github.com/mjibson/esc && \
|
|
cd /go/src/github.com/mjibson/esc && \
|
|
git checkout -q "$ESC_SHA" && \
|
|
go build -v -o /usr/bin/esc . && \
|
|
rm -rf /go/src/* /go/pkg/* /go/bin/*
|
|
|
|
ARG GOTESTSUM_VERSION=0.3.4
|
|
RUN curl -Ls https://github.com/gotestyourself/gotestsum/releases/download/v${GOTESTSUM_VERSION}/gotestsum_${GOTESTSUM_VERSION}_linux_amd64.tar.gz -o gotestsum.tar.gz && \
|
|
tar -xf gotestsum.tar.gz gotestsum -C /usr/bin && \
|
|
rm gotestsum.tar.gz
|
|
|
|
ENV CGO_ENABLED=0 \
|
|
PATH=$PATH:/go/src/github.com/docker/cli/build \
|
|
DISABLE_WARN_OUTSIDE_CONTAINER=1
|
|
WORKDIR /go/src/github.com/docker/cli
|
|
CMD sh
|
|
COPY . .
|