fix: update mainModuleVersion function to always prefix v to findings (#3087)

* chore: basic fix
Signed-off-by: Christopher Phillips <32073428+spiffcs@users.noreply.github.com>
* test: make sure ldflags are prefixed with v
---------
Signed-off-by: Christopher Phillips <32073428+spiffcs@users.noreply.github.com>
This commit is contained in:
Christopher Angelo Phillips
2024-08-01 11:29:07 -04:00
committed by GitHub
parent 05a10e8bed
commit c84cb2cf84
3 changed files with 24 additions and 14 deletions
@@ -7,8 +7,7 @@ COPY go.mod go.sum ./
RUN go mod download
COPY main.go main.go
RUN CGO_ENABLED=0 GOOS=linux go build -o run-me .
RUN CGO_ENABLED=0 GOOS=linux go build -ldflags "-X main.Version=1.0.0" -o run-me .
FROM scratch