pv-migrate: remove extra v prefix from ldflags

`main.version` and `main.commit` were set to `v${version}` via ldflags.
However, version 3+ of pv-migrate prepends `v` internally when resolving
Kubernetes helper images, producing `vv3.3.0` instead of `v3.3.0`. Drop
the hardcoded `v` prefix from the ldflags so the software receives a
bare version string and constructs the image tag correctly. This also
aligns the behavior with goreleaser.
This commit is contained in:
Francesco Zanini
2026-04-28 09:24:02 +02:00
parent 009472a6ae
commit 2396ba1898
+2 -2
View File
@@ -24,8 +24,8 @@ buildGoModule (finalAttrs: {
ldflags = [
"-s"
"-w"
"-X main.version=v${finalAttrs.version}"
"-X main.commit=v${finalAttrs.version}"
"-X main.version=${finalAttrs.version}"
"-X main.commit=${finalAttrs.version}"
"-X main.date=1970-01-01-00:00:01"
];