← Winnitude! Search  ·  Reader Mode (1020 ms)
Links: Stay in Reader Retro Site Converter Retro Mode: OFF Original Page ↗
GITHUB · 7 LINKS

Use --store-dir for haskell · Issue #3501 · pre-commit/pre-commit

Repository navigation

Use --store-dir for haskell  #3501


New issue

New issue

Open

Open
Use --store-dir for haskell #3501

Description

@Freed-Wu's profile Freed-Wu opened on Jul 23, 2025

search you tried in the issue tracker

store-dir

describe your actual problem

I use https://github.com/NixOS/nixfmt 's pre-commit hook:

❯ 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions