From a685d8448fba5a249fbaac0adfa0e7bde5c4266f Mon Sep 17 00:00:00 2001 From: Brad Davidson Date: Tue, 8 Oct 2024 18:38:39 +0000 Subject: [PATCH] Bump github.com/docker/docker when building ... just to silence vuln scanners. Signed-off-by: Brad Davidson --- Dockerfile | 1 + 1 file changed, 1 insertion(+) diff --git a/Dockerfile b/Dockerfile index 23463a9..8c69327 100644 --- a/Dockerfile +++ b/Dockerfile @@ -18,6 +18,7 @@ RUN git clone --depth=1 https://${SRC}.git $GOPATH/src/${PKG} WORKDIR $GOPATH/src/${PKG} RUN git fetch --all --tags --prune RUN git checkout tags/${TAG} -b ${TAG} +RUN go mod edit -replace github.com/docker/docker=github.com/docker/docker@v27.1.1+incompatible && go mod tidy && go mod vendor ENV GO_LDFLAGS="-linkmode=external -X ${PKG}/pkg/version.Version=${TAG}" RUN go-build-static.sh -gcflags=-trimpath=${GOPATH}/src -o bin/crictl ./cmd/crictl RUN go-assert-static.sh bin/*