Skip to content
  • Hannes Siebenhandl's avatar
    7666f4a9
    Migrate `ghc-pkg` to use `OsPath` and `file-io` · 7666f4a9
    Hannes Siebenhandl authored and Marge Bot's avatar Marge Bot committed
    `ghc-pkg` should use UNC paths as much as possible to avoid MAX_PATH
    issues on windows.
    
    `file-io` uses UNC Paths by default on windows, ensuring we use the
    correct APIs and that we finally are no longer plagued by MAX_PATH
    issues in CI and private machines.
    
    On top of it, the higher correctness of `OsPath` is appreciated in this
    small codebase. Also, we improve memory usage very slightly, due to the
    more efficient memory representation of `OsPath` over `FilePath`
    
    Adds `ghc-pkg` regression test for MAX_PATH on windows
    
    Make sure `ghc-pkg` behaves as expected when long paths (> 255) are
    involved on windows.
    
    Let's generate a testcase where we can actually observe that `ghc-pkg`
    behaves as epxected.
    
    See the documentation for windows on Maximum Path Length Limitation:
    
    * `https://learn.microsoft.com/en-us/windows/win32/fileio/maximum-file-path-limitation`
    
    Adds changelog entry for long path support in ghc-pkg.
    7666f4a9
    Migrate `ghc-pkg` to use `OsPath` and `file-io`
    Hannes Siebenhandl authored and Marge Bot's avatar Marge Bot committed
    `ghc-pkg` should use UNC paths as much as possible to avoid MAX_PATH
    issues on windows.
    
    `file-io` uses UNC Paths by default on windows, ensuring we use the
    correct APIs and that we finally are no longer plagued by MAX_PATH
    issues in CI and private machines.
    
    On top of it, the higher correctness of `OsPath` is appreciated in this
    small codebase. Also, we improve memory usage very slightly, due to the
    more efficient memory representation of `OsPath` over `FilePath`
    
    Adds `ghc-pkg` regression test for MAX_PATH on windows
    
    Make sure `ghc-pkg` behaves as expected when long paths (> 255) are
    involved on windows.
    
    Let's generate a testcase where we can actually observe that `ghc-pkg`
    behaves as epxected.
    
    See the documentation for windows on Maximum Path Length Limitation:
    
    * `https://learn.microsoft.com/en-us/windows/win32/fileio/maximum-file-path-limitation`
    
    Adds changelog entry for long path support in ghc-pkg.
Loading