sq: fix buildinfo.Version string by adding a v prefix

This commit is contained in:
Raito Bezarius 2023-03-04 11:56:08 +01:00
parent 18b4f3c939
commit 48093e8ee1

View File

@ -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; {