direnv is running in an emulated environment with Rosetta, despite my shell running in a normal environment. I am on mac osx and recently ran the migration tool from an x86_64 to M2 macbook pro.
uname -mdirenv exec . uname -mI installed direnv with Homebrew. Homebrew itself was Rosetta enabled, running brew config will output Rosetta: true. I fixed the problem by doing the following:
brew install direnvHope this helps others running into the same problem.