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