Merge pull request #228149 from figsoda/supabase

supabase-cli: fix version

authored by

Weijia Wang and committed by
GitHub
b4ed0a1f 1dc0c772

+13 -2
+13 -2
pkgs/development/tools/supabase-cli/default.nix
··· 2 , buildGoModule 3 , fetchFromGitHub 4 , installShellFiles 5 , nix-update-script 6 }: 7 ··· 18 19 vendorSha256 = "sha256-j2iEeAn+4Tn3h8lVKoaYE+6W4R/q+JaAWXxHllZGLNs="; 20 21 - ldflags = [ "-s" "-w" "-X" "github.com/supabase/cli/cmd.version=${version}" ]; 22 23 doCheck = false; # tests are trying to connect to localhost 24 ··· 34 --zsh <($out/bin/supabase completion zsh) 35 ''; 36 37 - passthru.updateScript = nix-update-script { }; 38 39 meta = with lib; { 40 description = "A CLI for interacting with supabase";
··· 2 , buildGoModule 3 , fetchFromGitHub 4 , installShellFiles 5 + , testers 6 + , supabase-cli 7 , nix-update-script 8 }: 9 ··· 20 21 vendorSha256 = "sha256-j2iEeAn+4Tn3h8lVKoaYE+6W4R/q+JaAWXxHllZGLNs="; 22 23 + ldflags = [ 24 + "-s" 25 + "-w" 26 + "-X=github.com/supabase/cli/internal/utils.Version=${version}" 27 + ]; 28 29 doCheck = false; # tests are trying to connect to localhost 30 ··· 40 --zsh <($out/bin/supabase completion zsh) 41 ''; 42 43 + passthru = { 44 + tests.version = testers.testVersion { 45 + package = supabase-cli; 46 + }; 47 + updateScript = nix-update-script { }; 48 + }; 49 50 meta = with lib; { 51 description = "A CLI for interacting with supabase";