haskell / haskell/cabal

Could cabal install sdist fewer packages?

Open
#10,739 0 comments 0 reactions 0 assignees View on GitHub
type: user-question
Dominant language
Haskell
Stars
1.7k
Forks
750
Avg merge
4d 3h
Merged PRs (30d)
28

Description

Related to #10738, running `cabal install cabal-install` first does what looks like `cabal sdist` on all of the packages in the project when it only needs a subset of those. Perhaps it could only do the `sdist` on those it needs?

```
$ ~/.ghcup/bin/cabal-3.12.1.0 install cabal-install:exe:cabal --dry-run
Wrote tarball sdist to
/home/philderbeast/dev/src/cabalism/cabal/dist-newstyle/sdist/Cabal-3.15.0.0.tar.gz
Wrote tarball sdist to
/home/philderbeast/dev/src/cabalism/cabal/dist-newstyle/sdist/Cabal-described-3.15.0.0.tar.gz
Wrote tarball sdist to
/home/philderbeast/dev/src/cabalism/cabal/dist-newstyle/sdist/Cabal-syntax-3.15.0.0.tar.gz
Wrote tarball sdist to
/home/philderbeast/dev/src/cabalism/cabal/dist-newstyle/sdist/Cabal-hooks-3.16.tar.gz
Wrote tarball sdist to
/home/philderbeast/dev/src/cabalism/cabal/dist-newstyle/sdist/cabal-install-3.15.0.0.tar.gz
Wrote tarball sdist to
/home/philderbeast/dev/src/cabalism/cabal/dist-newstyle/sdist/cabal-install-solver-3.15.0.0.tar.gz
Wrote tarball sdist to
/home/philderbeast/dev/src/cabalism/cabal/dist-newstyle/sdist/buildinfo-reference-generator-0.tar.gz
Wrote tarball sdist to
/home/philderbeast/dev/src/cabalism/cabal/dist-newstyle/sdist/Cabal-QuickCheck-3.15.0.0.tar.gz
Wrote tarball sdist to
/home/philderbeast/dev/src/cabalism/cabal/dist-newstyle/sdist/Cabal-tests-3.tar.gz
Wrote tarball sdist to
/home/philderbeast/dev/src/cabalism/cabal/dist-newstyle/sdist/Cabal-tree-diff-3.15.0.0.tar.gz
Wrote tarball sdist to
/home/philderbeast/dev/src/cabalism/cabal/dist-newstyle/sdist/cabal-validate-1.0.0.tar.gz
Wrote tarball sdist to
/home/philderbeast/dev/src/cabalism/cabal/dist-newstyle/sdist/cabal-testsuite-3.tar.gz
Wrote tarball sdist to
/home/philderbeast/dev/src/cabalism/cabal/dist-newstyle/sdist/cabal-benchmarks-3.tar.gz
Wrote tarball sdist to
/home/philderbeast/dev/src/cabalism/cabal/dist-newstyle/sdist/solver-benchmarks-3.tar.gz
Resolving dependencies...
Build profile: -w ghc-9.10.1 -O1
In order, the following would be built (use -v for more details):
- Cabal-syntax-3.15.0.0 (lib) (requires build)
- hackage-security-0.6.2.6 (lib) (requires build)
- Cabal-3.15.0.0 (lib) (requires build)
- cabal-install-solver-3.15.0.0 (lib) (requires build)
- cabal-install-3.15.0.0 (lib) (requires build)
- cabal-install-3.15.0.0 (exe:cabal) (requires build)
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.