From b6059c6ffcf1757a09b1f6e1ec6706da9b84d2e3 Mon Sep 17 00:00:00 2001 From: declement Date: Tue, 12 Nov 2024 12:18:00 +0100 Subject: [PATCH] fix(docker): fix infered tool version in Dockerfile --- Dockerfile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 0991edf..96c370d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -30,9 +30,9 @@ COPY main.go main.go # by leaving it empty we can ensure that the container and binary shipped on it will have the same platform. RUN CGO_ENABLED=0 GOOS=${TARGETOS:-linux} GOARCH=${TARGETARCH} go build -a \ -ldflags="\ - -X ${PACKAGE}/internal/version.Version=${VERSION} \ - -X ${PACKAGE}/internal/version.CommitHash=${COMMIT_HASH} \ - -X ${PACKAGE}/internal/version.BuildTimestamp=${BUILD_TIMESTAMP}" \ + -X ${PACKAGE}/cmd.Version=${VERSION} \ + -X ${PACKAGE}/cmd.CommitHash=${COMMIT_HASH} \ + -X ${PACKAGE}/cmd.BuildTimestamp=${BUILD_TIMESTAMP}" \ -o bin/git-secret-scanner main.go # ---