### search you tried in the issue tracker store-dir ### describe your actual problem I use https://github.com/NixOS/nixfmt 's pre-commit hook: ```sh ❯ ldd /home/wzy/.cache/pre-commit/repob1vcsmt9/hs_env-default/bin/nixfmt linux-vdso.so.1 (0x00007f673f4c1000) /usr/$LIB/librl_custom_function.so => /usr/lib/librl_custom_function.so (0x00007f673f469000) libm.so.6 => /usr/lib/libm.so.6 (0x00007f673f371000) libHSsafe-exceptions-0.1.7.4-3Z5aHvleGFbLTLwdzNM383-ghc9.4.8.so => /usr/lib/libHSsafe-exceptions-0.1.7.4-3Z5aHvleGFbLTLwdzNM383-ghc9.4.8.so (0x00007f673f359000) libHSnixfmt-1.0.0-b1605426f403e509c1ae87e6b7c6d168f2b86090ec32a7676c1d258cfb68b7b0-ghc9.4.8.so => /home/wzy/.cabal/store/ghc-9.4.8/nixfmt-1.0.0-b1605426f403e509c1ae87e6b7c6d168f2b86090ec32a7676c1d258cfb68b7b0/lib/libHSnixfmt-1.0.0-b1605426f403e509c1ae87e6b7c6d168f2b86090ec32a7676c1d258cfb68b7b0-ghc9.4.8.so (0x00007f673f18f000) ... ``` `/home/wzy/.cabal/store/ghc-9.4.8/` is not system path (normal user can delete it), and also outside of `~/.cache/pre-commit`. Why not use `--store-dir=/home/wzy/.cache/pre-commit/repob1vcsmt9/hs_env-default/store/ghc-9.4.8/`? ### pre-commit --version 4.2.0
Activity
asottile commentedon Jul 23, 2025
please actually fill out the issue template. "yes" does not lead to any useful issues