Skip to content

Conversation

@DzmingLi
Copy link
Contributor

Fixes direnv/devenv compatibility issue by adding --no-pure-eval flag to .envrc and updates .gitignore to exclude devenv-generated files in alphabetical order.

This PR addresses the issue originally reported in #20681. I apologize for the broken direnv setup that was merged in #20597.

Related: #20681
Fixes: #20597

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 [email protected])
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.
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.
@TonyRL TonyRL merged commit ce34d6e into DIYgod:master Dec 18, 2025
30 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants