haskell / haskell/cabal

"cabal install --only" incompatible with "--builddir"

Open
#1,516 2 comments 0 reactions 0 assignees View on GitHub
cabal-install: other cabal-install: v1- type: bug
Dominant language
Haskell
Stars
1.7k
Forks
750
Avg merge
4d 3h
Merged PRs (30d)
28

Description

It appears that "cabal install --only --builddir=SOME_DIR" ignores the "--builddir" option.

This works:

rm -rf dist not-dist
cabal configure
cabal build
cabal install --only

This works:

rm -rf dist not-dist
cabal install --builddir=not-dist

This works:

rm -rf dist not-dist
cabal configure --builddir=not-dist
cabal build --builddir=not-dist
cabal install --builddir=not-dist

This does not work:

rm -rf dist not-dist
cabal configure --builddir=not-dist
cabal build --builddir=not-dist
cabal install --only --builddir=not-dist

The "install" fails with:

cabal: Run the 'configure' command first.

which is the same error I get if do "cabal install --only" without doing "cabal configure" first.

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.