turso-cli: enable tests, reordering
This commit is contained in:
parent
77544893d1
commit
3725055979
1 changed files with 6 additions and 5 deletions
|
@ -9,8 +9,6 @@ buildGo121Module rec {
|
|||
pname = "turso-cli";
|
||||
version = "0.85.3";
|
||||
|
||||
nativeBuildInputs = [ installShellFiles ];
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "tursodatabase";
|
||||
repo = "turso-cli";
|
||||
|
@ -20,6 +18,8 @@ buildGo121Module rec {
|
|||
|
||||
vendorHash = "sha256-Hv4CacBrRX2YT3AkbNzyWrA9Ex6YMDPrPvezukwMkTE=";
|
||||
|
||||
nativeBuildInputs = [ installShellFiles ];
|
||||
|
||||
# Build with production code
|
||||
tags = ["prod"];
|
||||
# Include version for `turso --version` reporting
|
||||
|
@ -27,6 +27,10 @@ buildGo121Module rec {
|
|||
echo "v${version}" > internal/cmd/version.txt
|
||||
'';
|
||||
|
||||
preCheck = ''
|
||||
export HOME=$(mktemp -d)
|
||||
'';
|
||||
|
||||
postInstall = lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) ''
|
||||
installShellCompletion --cmd turso \
|
||||
--bash <($out/bin/turso completion bash) \
|
||||
|
@ -34,9 +38,6 @@ buildGo121Module rec {
|
|||
--zsh <($out/bin/turso completion zsh)
|
||||
'';
|
||||
|
||||
# Test_setDatabasesCache fails due to /homeless-shelter: read-only file system error.
|
||||
doCheck = false;
|
||||
|
||||
meta = with lib; {
|
||||
description = "This is the command line interface (CLI) to Turso.";
|
||||
homepage = "https://turso.tech";
|
||||
|
|
Loading…
Reference in a new issue