Merge pull request #228149 from figsoda/supabase
supabase-cli: fix version
This commit is contained in:
commit
b4ed0a1fb8
1 changed files with 13 additions and 2 deletions
|
@ -2,6 +2,8 @@
|
|||
, buildGoModule
|
||||
, fetchFromGitHub
|
||||
, installShellFiles
|
||||
, testers
|
||||
, supabase-cli
|
||||
, nix-update-script
|
||||
}:
|
||||
|
||||
|
@ -18,7 +20,11 @@ buildGoModule rec {
|
|||
|
||||
vendorSha256 = "sha256-j2iEeAn+4Tn3h8lVKoaYE+6W4R/q+JaAWXxHllZGLNs=";
|
||||
|
||||
ldflags = [ "-s" "-w" "-X" "github.com/supabase/cli/cmd.version=${version}" ];
|
||||
ldflags = [
|
||||
"-s"
|
||||
"-w"
|
||||
"-X=github.com/supabase/cli/internal/utils.Version=${version}"
|
||||
];
|
||||
|
||||
doCheck = false; # tests are trying to connect to localhost
|
||||
|
||||
|
@ -34,7 +40,12 @@ buildGoModule rec {
|
|||
--zsh <($out/bin/supabase completion zsh)
|
||||
'';
|
||||
|
||||
passthru.updateScript = nix-update-script { };
|
||||
passthru = {
|
||||
tests.version = testers.testVersion {
|
||||
package = supabase-cli;
|
||||
};
|
||||
updateScript = nix-update-script { };
|
||||
};
|
||||
|
||||
meta = with lib; {
|
||||
description = "A CLI for interacting with supabase";
|
||||
|
|
Loading…
Reference in a new issue