Skip to content
Snippets Groups Projects
This project is mirrored from https://github.com/haskell/Cabal. Pull mirroring updated .
  1. Mar 16, 2024
  2. Mar 14, 2024
  3. Mar 13, 2024
  4. Mar 10, 2024
  5. Mar 09, 2024
    • f-a's avatar
      Make `check` recognise `main-is` in conditional branches (#9768) · 74b1f215
      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>
  6. Mar 08, 2024
  7. Mar 07, 2024
  8. Mar 06, 2024
  9. Mar 04, 2024
  10. Mar 03, 2024
  11. Mar 02, 2024
  12. Mar 01, 2024
    • mergify[bot]'s avatar
      Merge pull request #9671 from mpickering/wip/cabal-install-Cabal · a0774dc9
      mergify[bot] authored
      Use in-tree Cabal library for `cabal-install` tests with custom setup.
    • Matthew Pickering's avatar
      Allow using different Cabal library versions for `cabal-install` tests with custom setup. · 716b109c
      Matthew Pickering authored
      The idea here is to pass a `--package-db` flag to `cabal-install` which
      contains just `Cabal` and `Cabal-syntax` of the specific version. This
      allows `cabal-install` tests to use the in-tree `Cabal` version,
      something which you can easily run into and get very confused about when
      writing tests.
      
      There are a few options which can be passed to `cabal-tests` executable
      to control which Cabal library you will test against.
      
      1. --boot-cabal-lib specifies to use the Cabal library bundled with the
         test compiler, this is the default and existing behaviour of the
         testsuite.
      2. --intree-cabal-lib=<root_dir> specifies to use Cabal and Cabal-syntax
         from a specific directory, and `--test-tmp` indicates where to put
         the package database they are built with.
      3. --specific-cabal-lib=<VERSION> specifies to use a specific Cabal
         version from hackage (ie 3.10.2.0) and installs the package database
         into --test-tmp=<DIR>
      
      The end result is that changes in the Cabal library can be tested with
      cabal-install tests in the testsuite.
      
      There have been a number of confusing issues with people writing tests
      for changes in the Cabal library which never ran because of
      cabal-install tests always used the boot Cabal library (see #9425
      for one).
      
      Fixes #9681
      716b109c
  13. Feb 29, 2024
  14. Feb 28, 2024
Loading