Add `cabal get --only-package-description` (#8263)
commit5159ffbc8ab42e242ccd404cef594787bb08d65e
authorArtem Pelenitsyn <a.pelenitsyn@gmail.com>
Mon, 4 Jul 2022 13:38:37 +0000 (4 09:38 -0400)
committerGitHub <noreply@github.com>
Mon, 4 Jul 2022 13:38:37 +0000 (4 15:38 +0200)
treeb8afa5033c0b9ca4845db3983faadca2ae17ec60
parent0c4d0489a925b83287bb1a9d625250a24ecc8473
Add `cabal get --only-package-description` (#8263)

With this option, 'cabal get' writes to the destination directory only the
package description already available locally in one of the repository
indices.

The basename of the file name written to inside the target directory is
the package-id rather than only the package name.

This is mostly based on #1977

Co-authored-by: Miëtek Bak <mietek@bak.io>
Co-authored-by: Artem Pelenitsyn <a.pelenitsyn@gmail.com>
Co-authored-by: Herbert Valerio Riedel <hvr@gnu.org>
Co-authored-by: Miëtek Bak <mietek@bak.io>
cabal-install/src/Distribution/Client/Get.hs
cabal-install/src/Distribution/Client/Setup.hs
cabal-testsuite/PackageTests/Get/OnlyDescription/cabal.out [new file with mode: 0644]
cabal-testsuite/PackageTests/Get/OnlyDescription/cabal.test.hs [new file with mode: 0644]
cabal-testsuite/PackageTests/Get/OnlyDescription/repo/criterion-1.1.4.0/criterion.cabal [new file with mode: 0644]
changelog.d/issue-1954 [new file with mode: 0644]
doc/cabal-package.rst