Skip to content

Use --store-dir for haskell #3501

@Freed-Wu

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

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

      pFad - Phonifier reborn

      Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

      Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


      Alternative Proxies:

      Alternative Proxy

      pFad Proxy

      pFad v3 Proxy

      pFad v4 Proxy