You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Help text wrongly states that the default --builddir is dist #7924
I think that the underlying reason is the same as why there is
% cabal build --help|grep libdir
--libdir=DIR installation directory for libraries
--libsubdir=DIR subdirectory of libdir in which libs are
--dynlibdir=DIR installation directory for dynamic libraries
etc parameters in cabal v2-build which shouldn't be there, as they don't have any effect. However Cabal's builddir is repurposed to do reasonable thing for cabal-install. It's somewhat hard to trace where from exactly builddir configuration param is
TL;DR, this is IMO a symptom of v2 commands not having sane, independent cli-argument implementation. There are plenty of such small annoyances. I guess the symptoms could be fixed one-by-one: in this case parameterize optionDistPref by default location and use dist-newstyle in cabal-install); however fixing the underlying cause needs a very determined person.
This is not oneline change, multiple files, in separate packages have to be changed. (This shouldn't be that hard, but that is a consequence of a hard underlying problem I mention: there is a sizable technical debt).
Activity
phadej commentedon Jan 22, 2022
This is indeed embarrassing. If you grep the code, you will notice that the help message comes from
Cabal, notcabal-install:cabal/Cabal/src/Distribution/Simple/Setup.hs
Lines 2159 to 2171 in b6d0516
defaultDistPrefis defined in the same file).I think that the underlying reason is the same as why there is
etc parameters in
cabal v2-buildwhich shouldn't be there, as they don't have any effect. HoweverCabal'sbuilddiris repurposed to do reasonable thing forcabal-install. It's somewhat hard to trace where from exactlybuilddirconfiguration param isTL;DR, this is IMO a symptom of v2 commands not having sane, independent cli-argument implementation. There are plenty of such small annoyances. I guess the symptoms could be fixed one-by-one: in this case parameterize
optionDistPrefby default location and usedist-newstyleincabal-install); however fixing the underlying cause needs a very determined person.phadej commentedon Jan 22, 2022
This is not oneline change, multiple files, in separate packages have to be changed. (This shouldn't be that hard, but that is a consequence of a hard underlying problem I mention: there is a sizable technical debt).
mpickering commentedon Sep 4, 2023
@phadej is correct about how to fix this issue, the change in #8833 seems the wrong way to go.