This project is mirrored from https://github.com/haskell/Cabal. Pull mirroring updated .
  1. 05 Mar, 2014 2 commits
  2. 21 Dec, 2013 1 commit
  3. 19 Dec, 2013 3 commits
  4. 17 Dec, 2013 1 commit
  5. 08 Dec, 2013 1 commit
    • barmston's avatar
      Top-level `freeze` command freezes dependency versions · c6138e81
      barmston authored
      Add new top-level `freeze` command, which resolves the dependencies to exact
      versions and writes a `constraints` section to `cabal.config`. This causes
      future builds to use the same fully constrained dependencies.
      
      The command takes a number of options related to resolving dependencies,
      namely, `--solver`, `--max-backjumps`, `reorder-goals` and
      `--shadow-installed-packages`. These are used to create an `InstallPlan` in
      much the same way that `install` does so. The `InstallPlan` is converted to a
      list and all `PlanPackage`s are inspected to determine their exact version.
      These versions are then either written to `cabal.config` or to standard output
      depending on the presence of `--dry-run`.
      
      Limitations in resolving dependencies
      -------------------------------------
      
      In order to keep the initial implementation of this new command simpler, a
      number of options are not yet supported.  There should be no great difficulty
      in supporting the options `--flags`, `--enable-{tests,benchmarks}`,
      `--constraint` and `--preference`.  However, the options concerned with
      compilers may prove more difficult.
      
      Different versions of GHC ship with different library versions, the
      constraints that are written currently include all dependencies, including
      `base`. This prevents the constraints, as written, from being used with
      alternate versions of GHC.
      
      There are three solutions to this problem: 1) have the user edit the
      constraints section, 2) exclude certain packages from the list of constraints,
      3) develop a mechanism for per-arch-os-compiler constraining. As neither (2)
      nor (3) have been developed we default to (1).
      
      The lack of a good story for per-compiler constraints has lead to the options
      `--with-compiler`, `--ghc`, `--uhc` et al, not being supported.
      
      Further limitations:
      --------------------
      
       - The `cabal.config` file is completely overwritten. Just the `constraints`
         section should be overwritten.
      c6138e81
  6. 06 Dec, 2013 2 commits
  7. 05 Dec, 2013 5 commits
  8. 01 Dec, 2013 1 commit
  9. 31 Oct, 2013 1 commit
  10. 30 Oct, 2013 1 commit
  11. 25 Oct, 2013 2 commits
  12. 30 Aug, 2013 1 commit
  13. 29 Aug, 2013 1 commit
  14. 23 Aug, 2013 1 commit
  15. 22 Aug, 2013 1 commit
  16. 10 Aug, 2013 1 commit
    • Duncan Coutts's avatar
      Use the --extra-prog-path flag in cabal-install · eb789dca
      Duncan Coutts authored
      We have to pass it properly in the setupWrapper. For the external build
      method we just set the $PATH rather than passing the flag. This way it
      works when talking to Setup.hs built with an older Cabal lib.
      eb789dca
  17. 12 Jun, 2013 1 commit
  18. 04 Jun, 2013 1 commit
  19. 17 May, 2013 1 commit
    • Mikhail Glushenkov's avatar
      Make newly-added add-source deps override previously installed versions. · e8742a5c
      Mikhail Glushenkov authored
      Fixes #1197.
      
      This patch is a bit large because it includes several related changes:
      
      1) Remove 'installUseSandbox' from 'InstallFlags' and pass 'useSandbox' as an
      additional argument instead.
      
      2) Instead of calling 'reinstallAddSourceDeps' from 'installAction', always pass
      'SandboxPackageInfo' to 'install'.
      
      3) Set the timestamps of newly-added add-source deps to 0 in the timestamp file.
      
      4) Move the timestamp file update to 'postInstallActions' from
      'withModifiedDeps'. This way, the timestamps are updated even when the user runs
      'install --only-dependencies' or 'install some-add-source-dep-package-id'.
      e8742a5c
  20. 13 May, 2013 2 commits
  21. 28 Apr, 2013 1 commit
  22. 24 Apr, 2013 2 commits
  23. 23 Apr, 2013 1 commit
  24. 19 Apr, 2013 1 commit
  25. 12 Apr, 2013 1 commit
  26. 07 Mar, 2013 1 commit
  27. 03 Mar, 2013 2 commits
  28. 08 Feb, 2013 1 commit