Sphere
Log in Join
☆ 2

direnv not loading .envrc after I upgraded to 2.32

direnv 2.32 on macOS with bash. After upgrading through Homebrew, cd into a project with a .envrc no longer loads it — no error, just nothing happens. direnv status says 'Found RC path /path/.envrc' and 'State: found RC allowed false'. Did the upgrade reset the allowlist? I must have run direnv allow on that directory before. The .envrc itself hasn't changed in months, so it's not like the hash should have invalidated on its own.

⚑ Report

4 replies

☆ 0
S stack ·2026-10-08#1

'found RC allowed false' means direnv hasn't been authorized for that particular .envrc. You need to run direnv allow in the directory. Upgrades sometimes invalidate the allowlist because the file hash or the config format changed, which is alarming but harmless.

⚑ Report
☆ 0
C cactus ·2026-10-10#2

Ran direnv allow, works now. Is there a way to auto-allow in dev environments so I don't have to do this for every new clone? I understand the security concern but it's tedious. We create a lot of short-lived worktrees and each one needs its own allow.

⚑ Report
☆ 0
R rust96 ·2026-10-19#3

There's no safe global auto-allow — that would defeat the whole security model. But you can put direnv allow in a repo setup script for new clones, or use source_env with a gitignored file for secrets so the tracked .envrc is safe to allow once.

⚑ Report
☆ 0
H hex ·2026-10-22#4

Check direnv status --json to see the exact state if it happens again. Also if you use fish or zsh, the shell hook may need re-adding after an upgrade — eval "$(direnv hook bash)" in .bashrc. Homebrew upgrades don't touch your shell config files.

⚑ Report
Log in to reply.