From ce34d6eb597aaee2241269efbc0222b148135426 Mon Sep 17 00:00:00 2001 From: Dzming Li Date: Thu, 18 Dec 2025 08:00:46 -0800 Subject: [PATCH] fix(.envrc): add --no-pure-eval for devenv flake compatibility (#20692) * feat(nix): add flake module and offline-friendly build * chore(nix): upgrade to Node.js 24 and pnpm 10 Update devenv.nix to match project dependencies: - Upgrade Node.js from 22 to 24 (aligns with Dockerfile node:24-bookworm) - Upgrade pnpm from 9 to 10 (aligns with package.json pnpm@10.22.0) * test: fix buffer-get test timeout Replace external URL with mock server endpoint to prevent test timeout. The test was trying to fetch from http://example.com which is not mocked, causing it to timeout. Now uses http://rsshub.test/headers which is properly mocked in the test setup. * fix(.envrc): add --no-pure-eval for devenv flake compatibility This fixes an issue where devenv fails when entering the directory with direnv, reporting: "devenv was not able to determine the current directory." The --no-pure-eval flag allows devenv to determine the project root via builtins.getEnv "PWD" in flake mode. Also adds .direnv, .devenv, and .pre-commit-config.yaml to .gitignore following alphabetical order as per project conventions. --- .envrc | 2 +- .gitignore | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.envrc b/.envrc index a5dbbcba7b..a41f435fb8 100644 --- a/.envrc +++ b/.envrc @@ -1 +1 @@ -use flake . +use flake . --no-pure-eval diff --git a/.gitignore b/.gitignore index ea5c4e4faa..f424494961 100644 --- a/.gitignore +++ b/.gitignore @@ -1,8 +1,11 @@ .DS_Store .cursorrules +.devenv +.direnv .env .eslintcache .idea +.pre-commit-config.yaml .log .now .roomodes