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
new-build doesn't respect verbose: setting in ~/.cabal/config #5956
% grep verbose ~/.cabal/config
verbose: verbose +nowrap
% cabal new-build
Build profile: -w ghc-8.4.4 -O1
In order, the following will be built (use -v for more details):
- haskell-ci-0.3.20190320 (lib:haskell-ci-internal) (first run)
- haskell-ci-0.3.20190320 (exe:haskell-ci) (first run)
Preprocessing library 'haskell-ci-internal' for haskell-ci-0.3.20190320..
Building library 'haskell-ci-internal' for haskell-ci-0.3.20190320..
[34 of 34] Compiling HaskellCI ( src/HaskellCI.hs, /home/ogre/Documents/shared-haskell/haskell-ci/dist-newstyle/build/x86_64-linux/ghc-8.4.4/haskell-ci-0.3.20190320/l/haskell-ci-internal/build/haskell-ci-internal/HaskellCI.o )
^C
% cabal new-build -vverbose+nowrap
this build was affected by the following (project) config files:
- /home/ogre/Documents/shared-haskell/haskell-ci/cabal.project
Build profile: -w ghc-8.4.4 -O1
In order, the following will be built:
- haskell-ci-0.3.20190320 (lib:haskell-ci-internal) (first run)
- haskell-ci-0.3.20190320 (exe:haskell-ci) (first run)
creating /home/ogre/Documents/shared-haskell/haskell-ci/dist-newstyle/build
The only way I see of solving this is to read the configs early to find the verbosity, but there's no good to then pass the config to commands without a large rewrite, so basically every command is going to end up reading the config twice.
Is this functionality anyone actually wants? Maybe we're better off removing it instead of fixing it?
I tried the fix in #7999 after rebasing and updating it, and it worked. Here's an adhoc test:
$ cabal install cabal-install:exe:cabal --overwrite-policy=always
$ cabal build Cabal-described
...
$ cabal build Cabal-described
Up to date
The build shows compilation:
$ echo "--TOUCH" >> Cabal-described/src/Distribution/Described.hs
$ cabal build Cabal-described
Build profile: -w ghc-9.14.1 -O1
In order, the following will be built (use -v for more details):
- Cabal-described-3.19.0.0 (lib) (file src/Distribution/Described.hs changed)
Preprocessing library for Cabal-described-3.19.0.0...
Building library for Cabal-described-3.19.0.0...
[3 of 3] Compiling Distribution.Described
The build with --verbose=0 doesn't show compilation:
Activity
phadej commentedon Mar 21, 2019
Also https://cabal.readthedocs.io/en/latest/installing-packages.html#cmdoption-setup-verbose seems to be not up to date
fgaz commentedon Mar 23, 2019
Could this be related to #5942?
phadej commentedon Mar 24, 2019
I tried to lookup where the various configurations blocks are appended; I didn't manage to figure out.
hvr commentedon Mar 27, 2019
This bug/issue existed for a long time; I'm surprised there wasn't already a bug filed about this hidden in our issue tracker... :-)
bacchanalia commentedon Feb 18, 2022
Looking into this, I'm increasingly unsure if any
v2-commands respect theverbose:setting.bacchanalia commentedon Feb 20, 2022
The only way I see of solving this is to read the configs early to find the verbosity, but there's no good to then pass the config to commands without a large rewrite, so basically every command is going to end up reading the config twice.
Is this functionality anyone actually wants? Maybe we're better off removing it instead of fixing it?
gbaz commentedon Feb 21, 2022
Can you sketch out the issue in a bit more detail. Maybe with some pointers to the obstacle, someone else could find a solutkon?
Make most v2- commands respect verbose setting
Make most v2- commands respect verbose setting
bacchanalia commentedon Feb 21, 2022
@gbaz I opened a draft PR
Make most v2- commands respect verbose setting
m4dc4p commentedon Jan 31, 2025
I love the
v0flag and having this setting work would be fantastic. Or remove it from the docs, as its just misleading.Make most v2- commands respect verbose setting
philderbeast commentedon Aug 4, 2026
I tried the fix in #7999 after rebasing and updating it, and it worked. Here's an adhoc test:
The build shows compilation:
The build with
--verbose=0doesn't show compilation:The build with
verbose: 0in the project doesn't show compilation: