From 48093e8ee19f28fd8f9e055d5a12f19f4f0d8489 Mon Sep 17 00:00:00 2001 From: Raito Bezarius Date: Sat, 4 Mar 2023 11:56:08 +0100 Subject: [PATCH] sq: fix buildinfo.Version string by adding a `v` prefix --- pkgs/development/tools/sq/default.nix | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/pkgs/development/tools/sq/default.nix b/pkgs/development/tools/sq/default.nix index a614d3339772..f30b30a75b90 100644 --- a/pkgs/development/tools/sq/default.nix +++ b/pkgs/development/tools/sq/default.nix @@ -23,7 +23,7 @@ buildGoModule rec { ldflags = [ "-s" "-w" - "-X=github.com/neilotoole/sq/cli/buildinfo.Version=${version}" + "-X=github.com/neilotoole/sq/cli/buildinfo.Version=v${version}" ]; postInstall = '' @@ -34,7 +34,10 @@ buildGoModule rec { ''; passthru.tests = { - version = testers.testVersion { package = sq; }; + version = testers.testVersion { + package = sq; + version = "v${version}"; + }; }; meta = with lib; {