Merge pull request #228149 from figsoda/supabase

supabase-cli: fix version
This commit is contained in:
Weijia Wang 2023-04-26 01:09:39 +03:00 committed by GitHub
commit b4ed0a1fb8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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