mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-19 11:23:29 +00:00
sq: fix buildinfo.Version string by adding a v
prefix
This commit is contained in:
parent
18b4f3c939
commit
48093e8ee1
@ -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; {
|
||||
|
Loading…
Reference in New Issue
Block a user