Skip to content
Snippets Groups Projects
This project is mirrored from https://github.com/haskell/Cabal.git. Pull mirroring updated .
  1. Jun 07, 2025
  2. Jun 05, 2025
  3. May 24, 2025
    • mergify[bot]'s avatar
      Merge pull request #10817 from haskell/wip/investigate-recomp · 55aba141
      mergify[bot] authored
      Fix PATH changes not triggering REPL reconfiguration (#2015)
      55aba141
    • Matthew Pickering's avatar
      Fix PATH changes not triggering REPL reconfiguration (#2015) · cf4083b4
      Matthew Pickering authored and Mikolaj Konarski's avatar Mikolaj Konarski committed
      When a user's PATH environment variable changes between Cabal commands,
      the environment in the REPL becomes incorrect. This occurs because
      during initial package configuration, the current PATH is captured via
      `programSearchPathAsPATHVar` and then stored in the `programOverrideEnv`
      field of a ConfiguredProgram. These `ConfiguredProgram`s are subsequently
      serialized into the setup-config file, effectively baking in the PATH
      environment from the time of configuration.
      
      The issue manifests when `PATH` is updated after initial configuration.
      Although the solver re-runs when detecting `PATH` changes, the
      `dryRunLocalPkg` function examines `ElaboratedConfiguredPackage` and
      incorrectly determines that nothing has changed that would require
      reconfiguration. This decision is incorrect because `setup-config` now
      contains a stale reference to the original `PATH` value, which no longer
      matches the current environment.
      
      To fix this problem, we need to store the `ConfiguredProgram`s directly in
      `ElaboratedConfiguredPackage`. This approach will ensure that when `PATH`
      changes, the `ConfiguredProgram`s will also change, properly triggering
      reconfiguration. While this solution will cause more recompilations when
      `PATH` changes, it guarantees that the correct environment is always used
      during builds and REPL sessions.
      
      An alternative approach would be to stop baking the `PATH` variable into
      the environment of programs, but this would require more substantial
      changes to how Cabal manages environment variables.
      
      Fixes #2015
      cf4083b4
    • mergify[bot]'s avatar
      Merge pull request #10967 from zlonast/jsp-options · 824735d7
      mergify[bot] authored
      Adding JavaScript Preprocessor Support
      824735d7
  4. May 21, 2025
  5. May 18, 2025
  6. May 17, 2025
  7. May 14, 2025
  8. May 13, 2025
  9. May 11, 2025
  10. May 10, 2025
  11. May 02, 2025
  12. Apr 30, 2025
  13. Apr 27, 2025
  14. Apr 26, 2025
  15. Apr 25, 2025
  16. Apr 23, 2025
  17. Apr 22, 2025
  18. Apr 16, 2025
  19. Apr 15, 2025
  20. Apr 14, 2025
    • mergify[bot]'s avatar
      Merge pull request #10837 from haskell/wip/8419 · 5edaf1b6
      mergify[bot] authored
      testsuite: Supress stderr when running integration tests
      5edaf1b6
    • Matthew Pickering's avatar
      testsuite: Supress stderr when running integration tests · cac61745
      Matthew Pickering authored and Mikolaj Konarski's avatar Mikolaj Konarski committed
      This fixes a problem where test output was leaking into GitHub Actions
      results (#8419), making the output unnecessarily verbose and harder to read.
      
      This makes the test output much cleaner while still preserving all the
      diagnostic information when tests fail.
      
      Also force the test to run sequentially, they fail if you try to run
      them concurrently. I think that there are probably issues to do with
      setting the working directory when using cabal-install as a library.
      
      Fixes #8419
      cac61745
  21. Apr 13, 2025
Loading