Ver código fonte

thats a paddlin

Zach 2 meses atrás
pai
commit
fb5d707e08
2 arquivos alterados com 2 adições e 2 exclusões
  1. 1 1
      Dockerfile
  2. 1 1
      Makefile

+ 1 - 1
Dockerfile

@@ -2,7 +2,7 @@ FROM golang:1.23 AS build
 WORKDIR /go/src/github.com/zricethezav/gitleaks
 COPY . .
 RUN VERSION=$(git describe --tags --abbrev=0) && \
-CGO_ENABLED=0 go build -o bin/gitleaks -ldflags "-X=github.com/zricethezav/gitleaks/v8/cmd.Version=${VERSION}"
+CGO_ENABLED=0 go build -o bin/gitleaks -ldflags "-X=github.com/zricethezav/gitleaks/v8/version.Version=${VERSION}"
 
 FROM alpine:3.19
 RUN apk add --no-cache bash git openssh-client

+ 1 - 1
Makefile

@@ -2,7 +2,7 @@
 
 PKG=github.com/zricethezav/gitleaks
 VERSION := `git fetch --tags && git tag | sort -V | tail -1`
-LDFLAGS=-ldflags "-X=github.com/zricethezav/gitleaks/v8/cmd.Version=$(VERSION)"
+LDFLAGS=-ldflags "-X=github.com/zricethezav/gitleaks/v8/version.Version=$(VERSION)"
 COVER=--cover --coverprofile=cover.out
 
 test-cover: