Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

new-build doesn't respect verbose: setting in ~/.cabal/config #5956

Open
phadej opened this issue Mar 21, 2019 · 8 comments
Open

new-build doesn't respect verbose: setting in ~/.cabal/config #5956

phadej opened this issue Mar 21, 2019 · 8 comments
Assignees

Comments

@phadej
Copy link
Collaborator

phadej commented Mar 21, 2019

% 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

@phadej
Copy link
Collaborator Author

phadej commented Mar 21, 2019

@fgaz
Copy link
Member

fgaz commented Mar 23, 2019

Could this be related to #5942?

@phadej
Copy link
Collaborator Author

phadej commented Mar 24, 2019

I tried to lookup where the various configurations blocks are appended; I didn't manage to figure out.

@hvr
Copy link
Member

hvr commented 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
Copy link
Collaborator

bacchanalia commented Feb 18, 2022

Looking into this, I'm increasingly unsure if any v2- commands respect the verbose: setting.

@bacchanalia bacchanalia self-assigned this Feb 20, 2022
@bacchanalia
Copy link
Collaborator

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
Copy link
Collaborator

gbaz commented 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?

bacchanalia added a commit to bacchanalia/cabal that referenced this issue Feb 21, 2022
bacchanalia added a commit to bacchanalia/cabal that referenced this issue Feb 21, 2022
@bacchanalia
Copy link
Collaborator

@gbaz I opened a draft PR

bacchanalia added a commit to bacchanalia/cabal that referenced this issue Feb 21, 2022
@Mikolaj Mikolaj removed the 3.8 label Jun 2, 2022
@Mikolaj Mikolaj added this to the 3.9 milestone Jun 2, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants