This project is mirrored from https://github.com/haskell/Cabal.
Pull mirroring updated .
- Dec 18, 2023
-
-
f-a authored
* Add `cabal-version` 3.12 * Add test for #9331 - `cabal check`: Guard Paths_* behind `cabal-version: 3.12` or higher, “fail” and “succeed” tests. - `cabal build`: Guard Paths_* behind `cabal-version: 3.12` or higher, “fail” test. * Guard PackageInfo behind cabal-version ≥ 3.12 --------- Co-authored-by:
mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
-
- Jul 31, 2023
-
-
f-a authored
* Do not ask overwrite questions for empty dirs See #9150, blank projects need not to ask permission to overwrite files. * Fix tests "test-dir" [] are the mock calls to `getPackageDir` and `listDirectory`
-
- May 24, 2023
-
-
Hécate Moonlight authored
-
- Mar 05, 2023
-
-
BasLaa authored
Add maybe in guess functions Adjust type in NonInteractive Change unit tests Fix whitespace Abstract guessing and remove comments Simplify guess functions Return default for cabal init author and name when git fails
-
- Feb 17, 2023
-
-
f-a authored
* (cabal init) make BSD-3-Clause default * Add changelog for #8757 * Modify test to incorporate new BDS-3 default --------- Co-authored-by:
mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
-
- Jan 29, 2023
-
-
Bas Laarakker authored
* Fix cabal init should not suggest Cabal < 2.0 * Remove + symbol cabal-version 2.0
-
- Nov 12, 2022
-
-
Artem Pelenitsyn authored
* cabal init -i should sanitize suggested package name (fix #8404) * fix existing tests * fix more tests (golden) * fix more tests (generators, simple) * add regression test * add changelog Co-authored-by:
mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
-
- Jul 19, 2022
-
-
Francesco Gazzetta authored
Fixes #8254 Co-authored-by:
mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
-
- Jul 12, 2022
-
-
ffaf1 authored
* Remove alphanum check from language prompt * Remove unneded whitespace * Add changelog for #8281 Co-authored-by:
mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
-
- Jul 09, 2022
-
-
Artem Pelenitsyn authored
-
- Jul 08, 2022
-
-
Artem Pelenitsyn authored
* cabal init -i should autodetect author name and maintainer email (fix #8255) Name and email are fetched from git config in the non-interactive init already, and we plug that utility into the interactive one in this commit. Testing becomes clunkier: the list of inputs have to hold an additional string that will be used as the return value of `Interactive.readProcessWithExitCode`, and here is why. Recall that this method is used to call `git config` to perform autodetection. In the real scenario (the `IO` instance of `Interactive`), it actually calls out to `git`. In the testing scenario (the `PurePrompt` instance of `Interactive`), the method simply returns the next element of the list of pre-defined inputs. So, the list of inputs to every relevant test has to be adjusted. * Add test checking that username/email can be autodetected
-
- Apr 22, 2022
-
-
Emily Pillmore authored
-
- Mar 20, 2022
-
-
Patrick Augusto authored
-
- Mar 10, 2022
-
-
Patrick Augusto authored
-
Patrick Augusto authored
-
Patrick Augusto authored
-
- Feb 28, 2022
-
-
toonn authored
After discussion in #hackage it seemed prudent to add some minimal explanation of what a valid SPDX identifier might look like in the error message.
-
- Nov 26, 2021
-
-
Patrick Augusto authored
-
- Aug 16, 2021
-
-
Emily Pillmore authored
* add baseDep to simple project generation * refine the base dep getting
-
- Jul 14, 2021
-
-
Emily Pillmore authored
-
- Jul 07, 2021
-
-
Patrick Augusto authored
-
- Jun 23, 2021
-
-
Patrick Augusto authored
-
Patrick Augusto authored
-
Patrick Augusto authored
-
Patrick Augusto authored
-
- May 14, 2021
-
-
Patrick Augusto authored
-
- May 12, 2021
-
-
Patrick Augusto authored
-
- May 07, 2021
-
-
Emily Pillmore authored
-
- May 05, 2021
-
-
Emily Pillmore authored
-
Emily Pillmore authored
-
Emily Pillmore authored
-
Emily Pillmore authored
-
- May 04, 2021
-
-
Patrick Augusto authored
-
Emily Pillmore authored
* Restructures the `cabal init` command to fix historical issues. All flags are preserved. * Codebases for interactive and non-interactive flags are disentangled. * Data structures now exploit relevant stanza structure and formatters only care about stanza data * Heuristics and prompts have a pure and impure implementation. * Sets default behavior to be `--interactive` as opposed to `--non-interactive`. * Rewrites tests to achieve 98% coverage * Golden files now test every stanza individually * Every flag is covered by a unit test * Interactive, simple, and non-interactive workflows are covered.
-