This project is mirrored from https://github.com/haskell/Cabal.git.
Pull mirroring updated .
- May 16, 2024
-
-
Tommy Bidne authored
See: #4899 Co-authored-by:
mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> (cherry picked from commit b48a6206)
-
- May 15, 2024
-
-
mergify[bot] authored
Bump index-state in the release project file
-
- May 14, 2024
-
-
Artem Pelenitsyn authored
-
mergify[bot] authored
* changelog-d moved to codeberg (cherry picked from commit 067967e2) * Add required-fields to changelog.d config (cherry picked from commit 5168b01c) # Conflicts: # changelog.d/issue-8680 # changelog.d/issue-9098-lexbraces # changelog.d/issue-9678 # changelog.d/issue-9736 # changelog.d/pkgconfig-once --------- Co-authored-by:
Francesco Gazzetta <fgaz@fgaz.me> Co-authored-by:
Artem Pelenitsyn <a.pelenitsyn@gmail.com> Co-authored-by:
mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
-
mergify[bot] authored
Ignore testdb/intree generated files (backport #9847)
-
Phil de Joux authored
(cherry picked from commit 57b961ca)
-
mergify[bot] authored
Remove skipIfGhcVersion "== 9.6.3" (backport #9749)
-
Not able to reproduce the problem this avoids. Tested with; - --with-cabal=./dist-newstyle/build/x86_64-linux/ghc-9.6.3/cabal-install-3.11.0.0/x/cabal/build/cabal/cabal --with-cabal=./dist-newstyle/build/x86_64-linux/ghc-9.8.1/cabal-install-3.11.0.0/x/cabal/build/cabal/cabal (cherry picked from commit 3e8d2d21)
-
mergify[bot] authored
CI changelogs: switch to XDG, fix cache key (backport #9849)
-
andreas.abel authored
This is the same as #9845 but for the changelogs.yml workflow. `changelog-d` currently has restrictive bound `base < 4.19` which we need to ignore if we want to build on the latest GHC as shipped by the GHA runner. (cherry picked from commit af5d6061)
-
mergify[bot] authored
Add a --dry-run build check of cabal.project.release (backport #9610)
-
- May 13, 2024
-
-
Phil de Joux authored
(cherry picked from commit d6e067e8)
-
Phil de Joux authored
The release project disables tests and benchmarks. (cherry picked from commit 135611e4)
-
Phil de Joux authored
- Cache of ~/.cabal/store not needed for --dry-run - Remove workaround for the new job only (cherry picked from commit cdc8bdef)
-
mergify[bot] authored
Testsuite: pass -i argument to runghc invocations (backport #9518)
-
sheaf authored
This commit modifies the generation of runghc commands to pass an additional -i argument to account for the change in working directory. This ensures that, in the testsuite, runghc is able to see other modules. For example, an invocation of runghc to run a Custom Setup script will now properly see the modules imported, e.g. if one has a directory structure like test.cabal Setup.hs SetupDep.hs and Setup.hs imports SetupDep.hs. (cherry picked from commit b2b9c2f6)
-
mergify[bot] authored
Remove stale see 'withSourceCopyDir' (backport #9750)
-
Phil de Joux authored
(cherry picked from commit 54b26f49)
-
mergify[bot] authored
* Import packages from project-cabal/pkgs - Move constraints to project-cabal/constraints.config - Remove duplicate package groups - Groups coverage, doctest and validate are the same as the default group - Remove duplicate validate-libonly package group - Both validate and validate-libonly are the same - Move Cabal & Cabal-syntax to pkgs/cabal.config - Add install package group - Add benchmarks package group - Add tests package group - Both default and libonly groups were the same set of packages that I renamed to tests - Put install group before tests and benchmarks - Don't repeat packages - Add TODO and REVIEW comments on allow-newer exceptions - Move latest.ghc configuration - Put program-options first & separate imports - Remove optional-packages - Don't reiterate default value for tests and benchmarks - Don't reiterate default value for optimization - Add ghc-options.config - Rename to ghc-latest.config - Use -Werror in ghc-options.config - Don't include ghc-options.config for doctest project - Add project-config/pkgs.config - Add project-config/pkgs.config importing all package groups - Move Cabal-described to the cabal package group - Remove cabal.project.buildinfo - Have cabal.project.doctest import cabal.project - Split integration tests into their own package group. - Add back trailing newlines at EOF in projects - Integration-tests.config needed for libonly - Add a README for projects. (cherry picked from commit 0876e187) # Conflicts: # cabal.project.release * Build all local packages with -Werror - Satisfy -Wmissing-signatures in test-runtime-deps - Satisfy -Wx-partial in HackageBenchmark - Satisfy -Wunused-imports in QuickCheck.Instances.Cabal - Use partial pattern for filtering in list comprehension - Don't error on deprecated import (cherry picked from commit 8453ee0b) * Add an intercepting cabal-testsuite/cabal.project - Reduce duplication in test flag setup - Avoid "New config" picking cabal's own project Before this change, this was the test failure: Unit Tests UnitTests.Distribution.Client.Configure Configure tests New config: FAIL Exception: project-cabal/pkgs/cabal.config: withBinaryFile: does not exist (No such file or directory) Use -p '/New config/' to rerun this test only. Replacement + new config: OK Old + new config: OK Old + new config, no appending: OK Old + new config, backup check: OK Local program options: OK 1 out of 6 tests failed (0.02s) (cherry picked from commit d3362759) * Remove dangling doctest TODO left over from #9572 (cherry picked from commit 619befd0) * Remove allow-newer exception for cryptohash-sha256:base (cherry picked from commit ed5d4044) * Remove projects; weeder, doctest & libonly * Remove cabal.project.libonly It was only referenced once in a stale Makefile comment about doctests. * Remove weeder - remove weeder's configuration - remove its recipe from Makefile - remove its project * Delete cabal.project.doctest - Adding --ghc-options="-Wwarn" is sufficient to avoid the numerous <interactive> failures seen otherwise - write-ghc-environment-files has a default of never (cherry picked from commit 72be26bd) * Update cabal.project.release --------- Co-authored-by:
Phil de Joux <philderbeast@gmail.com> Co-authored-by:
Hécate <Kleidukos@users.noreply.github.com> Co-authored-by:
mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
-
mergify[bot] authored
* Add back whitespace workflow (cherry picked from commit 265f1493) * Whitespace conventions in contributing (cherry picked from commit 7c9346bf) * Fix whitespace in workflows (cherry picked from commit c31ca12e) # Conflicts: # .github/workflows/validate.yml * Fix whitespace in docs (cherry picked from commit 2ea012eb) * Fix whitespace in *.hs sources (cherry picked from commit e420bf25) * Add missing line at EOF for cabal-testsuite/**/*.hs - Fix whitespace in cabal-testsuite + other tests (cherry picked from commit e386a13c) * Fix whitespace in fourmolu configuration (cherry picked from commit b790751c) * Configure fix-whitespace to include *.project Needed for POSIX compliance for text files (cherry picked from commit ed4c36a2) * Fix whitespace in *.project (cherry picked from commit 38eb1e82) * Ignore generated doc/buildinfo-fields-reference.rst (cherry picked from commit b414fafc) * Reduce double space between prose words Co-authored-by:
brandon s allbery kf8nh <allbery.b@gmail.com> (cherry picked from commit 834e1ed6) * Use fix-whitespace-action (cherry picked from commit eb87ffdf) * Fix merge conflict --------- Co-authored-by:
Phil de Joux <philderbeast@gmail.com> Co-authored-by:
Hécate <Kleidukos@users.noreply.github.com>
-
mergify[bot] authored
Use in-tree Cabal library for `cabal-install` tests with custom setup. (backport #9671)
-
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 (cherry picked from commit 716b109c)
-
- May 10, 2024
-
-
mergify[bot] authored
update `base` bounds for desupported ghc 8.2 (backport #9964)
-
Brandon S. Allbery authored
(cherry picked from commit c2c914a1) # Conflicts: # Cabal-hooks/Cabal-hooks.cabal # Cabal-tests/Cabal-tests.cabal # cabal-install-solver/cabal-install-solver.cabal # cabal-testsuite/cabal-testsuite.cabal
-
- May 06, 2024
-
-
mergify[bot] authored
Touch up release notes for cabal-install 3.12.0.0 pre-release (backport #9963)
-
Mikolaj Konarski authored
(cherry picked from commit 3aa20eca)
-
mergify[bot] authored
docs: correct references to location of global store (backport #9832)
-
Adam Gundry authored
(cherry picked from commit ff2967e4)
-
- May 05, 2024
-
-
mergify[bot] authored
How to use Cabal in Windows (backport #9723)
-
Javier Sagredo authored
(cherry picked from commit 18b91ccb)
-
- May 01, 2024
-
-
mergify[bot] authored
Reinstate 'initialBuildSteps' function (backport #9950)
-
sheaf authored
This patch reinstates the 'initialBuildSteps' function, as it is used by stack in its implementation of the multi-repl feature. A deprecation warning has been added to that function: calling it does not suffice to prepare the sources for a package, as there are other steps that one might also need to perform: - running pre-processors (such as alex/happy) - running pre-build hooks or custom logic (in build-type: Hooks or build-type: Custom or Configure) Consumers wanting to prepare the sources of a package, e.g. in order to launch a REPL session, are advised to run `Setup repl --repl-multi-file=<fn>` instead. Fixes #9856 (cherry picked from commit dd74e921)
-
mergify[bot] authored
3.12 changelog fixup (#9922) * Incorporate Brandon’s suggestions See #9920. * Incorporate Artem’s suggestions See #9920. * Do not repeat yourself * Fix release notes grammar (#9924) * Fix release notes grammar See #9920. * Fix whitespace * Support GHC 9.12 (cherry picked from commit da6bdefd) * Fix changelog/readme (backport #9935) (#9936) * Fix changelog/readme (cherry picked from commit ea0f4640) * Remove previous release date --------- Co-authored-by:
Francesco Ariis <fa-ml@ariis.it> * Tell zlib not to use pkg-config in GitLab CI. (cherry picked from commit 62c74fe1) * Revert "Mark ForeignLibs test as broken with ghc-8.4.4" This reverts commit a90d44ff. (cherry picked from commit d0a690bd) * CI: drop validation of GHC 7 Changes: - bump GHC_FOR_RELEASE to 9.4.8 - bump action versions - uniform quoting style - satisfy actionlint - fix order: setup Haskell before cache restore (uses setup.haskell-outputs) - use `--ignore-project` in `cabal install hackage-repo-tool` - use GHC_FOR_RELEASE also in validate-old-ghcs - closes #8858: deleted comment - closes #9858 by dropping container and using ghcup to setup ghcs GHCs that do not install on ubuntu-22.04 with GHCup are dropped, meaning we only keep GHC 8.0.2 and up. (cherry picked from commit 29dc53c3) # Conflicts: # .github/workflows/validate.yml * fix validate.yml conflicts How is this backport conflicting with _itself_? * copy an import list from #9551 because `System.Process.Internals` just (like, within the past hour or so) started exporting a name we are using. * CI: force MacOS jobs to use Intel runners (macos-13) (backport #9949) (#9956) * CI: force MacOS jobs to use Intel runners (`macos-13`) GitHub just switched macos-latest to the ARM chips (now alisasing `macos-14`), and it brings a bunch of problems. - First of all, GHC's 8.8 and 8.6 don't exist there. - ghcup and llvm are unavailable For the time being, lets stay on the previous version of the runner. (cherry picked from commit d36e0d09) * CI: GitHub MacOS runners lost ghcup since 2024-04-27, so use haskell-action/setup instead (cherry picked from commit 082d9520) * fixup! more compat with new macos runners (cherry picked from commit 326a1f60) * !fixup resolve conflicts * copy an import list from #9551 because `System.Process.Internals` just (like, within the past hour or so) started exporting a name we are using. --------- Co-authored-by:
Artem Pelenitsyn <a.pelenitsyn@gmail.com> Co-authored-by:
brandon s allbery kf8nh <allbery.b@gmail.com> * Merge branch '3.12' into mergify/bp/3.12/pr-9886 * Update validate.yml github nicely decided to ~revert~ the OS X validate fix when I rebased on top of it. * make validate.yml consistent with master Co-authored-by:
Mikolaj <281893+Mikolaj@users.noreply.github.com> Co-authored-by:
mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
-
mergify[bot] authored
Add a warning when an env file is created (backport #9705)
-
mergify[bot] authored
-
mergify[bot] authored
Update cabal-install to allow time 1.14 (backport #9851)
-
Tom Smeding authored
* Add a warning when an env file is created https://github.com/haskell/cabal/issues/6481#issuecomment-1934909998 * Formatting * Improve wording of warning message * Only show warning if --package-env not given * Improve message and its formatting * Formatting (cherry picked from commit 00ce0249)
-
Brandon S. Allbery authored
Note that #9848 covers Cabal and Cabal-syntax already. (cherry picked from commit 65842cbd)
-
mergify[bot] authored
update idna per dependabot / CVE-2024-3651 (backport #9896)
-