Skip to content

armgit / dbx

Public Imported from GitHub
0

25 MB lightweight cross-platform database client for 100+ databases, including MySQL, PostgreSQL, SQLite, Redis, MongoDB, DuckDB, SQL Server, and Dameng. Built-in AI, MCP Server, CLI, desktop and Docker. | 轻量级跨平台数据库管理工具,支持 MySQL、PostgreSQL、SQLite、Redis、MongoDB、达梦等 100+ 数据库,提供桌面端、Docker、CLI、内置 AI 助手和 MCP。

fix(nix): refresh pnpm deps hash and accept spaced hash report format

t8y247939bd55607
diff --git a/.github/workflows/update-nix-pnpm-hash.yml b/.github/workflows/update-nix-pnpm-hash.yml
index 3e2a9d0a75..49e819cc04 100644
--- a/.github/workflows/update-nix-pnpm-hash.yml
+++ b/.github/workflows/update-nix-pnpm-hash.yml
@@ -41,7 +41,7 @@ jobs:
fi
cat "$build_log"
- expected_hash=$(sed -n 's/.*got: \(sha256-[A-Za-z0-9+/=]*\).*/\1/p' "$build_log" | tail -1)
+ expected_hash=$(sed -n -e 's/.*got:[[:space:]]*\(sha256-[A-Za-z0-9+/=]*\).*/\1/p' -e 's/.*use[[:space:]]"\(sha256-[A-Za-z0-9+/=]*\)".*/\1/p' "$build_log" | tail -1)
if [ -z "$expected_hash" ]; then
echo "Nix build failed without reporting a replacement fixed-output hash."
exit 1
diff --git a/flake.nix b/flake.nix
index dcffdacfd2..2aae31d57d 100644
--- a/flake.nix
+++ b/flake.nix
@@ -197,7 +197,7 @@
fetcherVersion = 4;
# Update with the hash reported by a failed fixed-output build:
# nix build .#dbx-pnpm-deps 2>&1 | grep 'got:'
- hash = "sha256-8hA97KK+5J9w1YZpMEQuzFZnsXMuIQ0oSYySc3AVGcg=";
+ hash = "sha256-Y2St1Pf2+/R+WHd8RIbwUHeCvmYsFAh07+8LVGhOjTo=";
};
# ── Step 2: vendor Cargo dependencies ───────────────────────────── #