Skip to content
Snippets Groups Projects
This project is mirrored from https://github.com/haskell/Cabal. Pull mirroring updated .
  1. Apr 06, 2024
  2. Mar 26, 2024
    • f-a's avatar
      Bump version numbers for 3.12.0.0 (#9788) · 7d140c56
      f-a authored
      * Bump version numbers for 3.12.0.0
      
      Version fields, constraints, licences, and bootstrap.
      
      ☞ N.B.:
      - This commit removes 8.10.7 from bootstrap list.
      - This release only deals with Cabal, not cabal-install.
      
      * Update index state in cabal.project.release
      
      This is needed since we need the new (0.6.2.5) release of
      hackage-security.
      
      * Regenerate bootstrap .json files
      7d140c56
  3. Mar 22, 2024
  4. Mar 19, 2024
  5. Mar 11, 2024
  6. Mar 09, 2024
    • f-a's avatar
      Make `check` recognise `main-is` in conditional branches (#9768) · 698339c0
      f-a authored
      
      * Add tests for #9742
      
      `main-is` not picked up when inside a multibranch CondNode.
      
      * Fix comments
      
      * Add simplifyBranch to Distribution.Types.CondTree
      
      Goes hand in hand with with simplifyCondTree.
      
      * Make `check` deal correctly with multiple branches
      
      `cabal check` had a problem recognising fields in presence of
      multiple branches. This patch fixes the problem and does not
      meaningfully increases CI time of particularly taxing tests
      (like “duplicate flagged dependencies” from MemoryUsage).
      
      ---------
      
      Co-authored-by: default avatarmergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
      (cherry picked from commit 74b1f215)
      698339c0
  7. Mar 07, 2024
  8. Mar 05, 2024
  9. Mar 04, 2024
  10. Feb 29, 2024
  11. Feb 28, 2024
  12. Feb 27, 2024
  13. Feb 25, 2024
    • mergify[bot]'s avatar
      Merge pull request #9683 from mpickering/wip/package-db-fix · 9025af59
      mergify[bot] authored
      cabal-install: Clarify the semantics of package-db flag
      9025af59
    • Matthew Pickering's avatar
      cabal-install: Clarify the semantics of package-db flag · d626ef87
      Matthew Pickering authored
      In this PR we make the `--package-db` flag apply only to the default
      immutable initial package stack rather than also applying to the store
      package database.
      
      There are two special package databases which cabal install knows about
      and treats specially.
      
      * The store directory, a global cache of installed packages where cabal
        builds and installs packages into.
      * The inplace directory, a local build folder for packages, where cabal
        builds local packages in.
      
      It is very important that cabal registers packages it builds into one of
      these two locations as there are many assumptions that packages will end
      up here.
      
      With the current design of the `--package-db` flag, you are apparently
      allowed to override the store location which should have the effect of
      making the last package database in the package stack the "store"
      directory. Perhaps this works out in theory but practically this
      behaviour was broken and things were always registered into the store
      directory that cabal knew about. (The assertion in
      `ProjectBuilding.UnpackedPackage` was failing (see added test)).
      
      With `--package-db` not being able to modify the location of the store
      directory then the interaction of `--package-db`, `--store-dir` and
      `--dist-dir` flags become easy to understand.
      
      * `--package-db` modify the initial package database stack, these
        package database will not be mutated by cabal and provide the initial
        package environment which is used by cabal.
      * `--store-dir` modify the location of the store directory
      * `--dist-dir` modify the location of the dist directory (and hence
        inplace package database)
      
      Treating the flags in this way also fix an assertion failure when
      building packages.
      
      Fixes #9678
      d626ef87
  14. Feb 24, 2024
  15. Feb 23, 2024
  16. Feb 22, 2024
  17. Feb 21, 2024
    • mergify[bot]'s avatar
      Merge pull request #9543 from mpickering/wip/autogen · 517ddc63
      mergify[bot] authored
      Modularise writeAutogenFiles
      517ddc63
    • sheaf's avatar
      Refactor autogen modules · 6d4faba9
      sheaf authored
      This commit modularises the logic for generation of autogenerated files
      and autogenerated modules.
      6d4faba9
    • sheaf's avatar
      SuffixHandler: add Suffix newtype · 65905b98
      sheaf authored
      This commit adds a Suffix newtype to describe suffixes as handled
      by suffix handlers & preprocessors, and changes the PPSuffixHandler
      type definition to use it.
      
      It also moves some type definitions from Distribution.Simple.PreProcess
      to the new module Distribution.Simple.PreProcess.Types.
      
      As this commit changes the definition of PPSuffixHandler, it will
      break custom Setup scripts which use the 'hookedPreProcessors'
      functionality.
      65905b98
  18. Feb 18, 2024
Loading