Visitar URL original
Use --store-dir for haskell · Issue #3501 · pre-commit/pre-commit · GitHub
The Wayback Machine - https://web.archive.org/web/20261013092609/https://github.com/pre-commit/pre-commit/issues/3501
Skip to content

Use --store-dir for haskell #3501

Open
Open

Description

@Freed-Wu

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

Activity

  1. asottile commented on Jul 23, 2025

    @asottile
    Member

    please actually fill out the issue template. "yes" does not lead to any useful issues

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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