From 7500f43afa0f954aebdf27146a2a831399093071 Mon Sep 17 00:00:00 2001 From: Marius Date: Wed, 13 Dec 2023 10:57:46 +0100 Subject: [PATCH] docker: Fix version embedding in tusd (#1046) Fixes https://github.com/tus/tusd/issues/1045. --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index d1e2d906c..e4fe1b96c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -25,7 +25,7 @@ ARG TARGETARCH RUN set -xe \ && GOOS=$TARGETOS GOARCH=$TARGETARCH go build \ - -ldflags="-X github.com/tus/tusd/cmd/tusd/cli.VersionName=${GIT_VERSION} -X github.com/tus/tusd/cmd/tusd/cli.GitCommit=${GIT_COMMIT} -X 'github.com/tus/tusd/cmd/tusd/cli.BuildDate=$(date --utc)'" \ + -ldflags="-X github.com/tus/tusd/v2/cmd/tusd/cli.VersionName=${GIT_VERSION} -X github.com/tus/tusd/v2/cmd/tusd/cli.GitCommit=${GIT_COMMIT} -X 'github.com/tus/tusd/v2/cmd/tusd/cli.BuildDate=$(date --utc)'" \ -o /go/bin/tusd ./cmd/tusd/main.go # start a new stage that copies in the binary built in the previous stage