Skip to content
Snippets Groups Projects
This project is mirrored from https://github.com/haskell/Cabal. Pull mirroring updated .
  1. Jun 22, 2023
  2. Jun 21, 2023
  3. Jun 20, 2023
  4. Jun 19, 2023
  5. Jun 18, 2023
  6. Jun 15, 2023
  7. Jun 14, 2023
  8. Jun 13, 2023
  9. Jun 12, 2023
    • f-a's avatar
      Specify Fourmolu version · 336ea5d8
      f-a authored
      Fourmolu < 0.12 results in spurious suggestions, see #8976.
      336ea5d8
    • Fraser Tweedale's avatar
      Fix parsing of password-command option (#6268) · 95f48ad7
      Fraser Tweedale authored
      The password-command option does not parse its value correctly.
      Quotes are ignored, making many kinds of commands impossible to
      express (e.g.  `sh -c "foo | bar"`).  Also, `cabal user-config`
      treats the argument list as a *list of option values*, rather than a
      *value that is a list*.  As a consequence, `cabal user-config
      update` corrupts the value in the config file.
      
      Fix these issues by parsing the command as a space separated list of
      tokens, and changing the getter to `unwords` the value and return a
      *singleton* list.  Also update the argument placeholder from
      `PASSWORD` to `COMMAND`.
      
      Fixes: https://github.com/haskell/cabal/issues/6268
      95f48ad7
  10. Jun 11, 2023
  11. Jun 10, 2023
  12. Jun 07, 2023
  13. Jun 04, 2023
    • Rebecca Turner's avatar
      Deduplicate `LD_LIBRARY_PATH` when running tests (#8728) · a191f0a2
      Rebecca Turner authored
      
      * Deduplicate `LD_LIBRARY_PATH` when running tests
      
      When Cabal runs a test suite, it adds all the dependent libraries to
      `LD_LIBRARY_PATH`. In some cases, this can exceed the operating system's
      `ARG_MAX` limit:
      
          dist/build/test/test: createProcess: posix_spawnp: resource exhausted (Argument list too long)
      
      However, many of the entries (observed as high as 75%!) in `LD_LIBRARY_PATH`
      are duplicates. Deduplicating the list with `Data.List.nub` fixes this error.
      
      This error was originally observed when testing a large commercial
      Haskell project (the mercury.com backend). Ideally, `depLibraryPaths`
      would be fixed to not return duplicate entries, but this fixup is
      low-cost and effective.
      
      * Add changelog entries
      
      ---------
      
      Co-authored-by: default avatarmergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
  14. Jun 03, 2023
  15. Jun 02, 2023
  16. Jun 01, 2023
    • f-a's avatar
      `cabal check`: clearly mark Errors (#8908) · aee92c97
      f-a authored
      
      * Fix typo
      
      American spelling.
      
      * Switch from `show` to `ppPackageCheck`
      
      Show instance for `PackageCheck` is broken (not bijective with `read`) and
      in the future will be deprecated.
      
      * Add `warnError`
      
      `warnError` is like `warn`, but instead of "Warning: …" prepends
      "Error: …" to the message.  It is useful in those cases where you
      want to highlight something is broken but do not want to stop the
      program yet.
      
      * cabal check: highlight error messages
      
      Warnings that make `cabal check` fail (i.e. the package will be
      refused by Hackage) are prepended by an "Error: " string, like
      this:
      
      Error: Instead of 'cc-options: -Llibdir' use 'extra-lib-dirs: libdir'
      
      This commit also gets away from list comprehension.
      
      * Make testsuite pass
      
      `NoDupNames` is now caught with an `error` before check has the opportunity
      to run.
      
      * Add changelog for #8908
      
      * Respect concordance
      
      (Artem’s review) summary message will now say “The following errors…”
      if the issues are “Error: …”s and “The following warnings…” otherwise.
      
      ---------
      
      Co-authored-by: default avatarmergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Loading