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

TestFlags are not saved in ~/.cabal/config #1941

Open
melrief opened this issue Jun 13, 2014 · 12 comments
Open

TestFlags are not saved in ~/.cabal/config #1941

melrief opened this issue Jun 13, 2014 · 12 comments
Labels
cabal-install: cmd/test old-milestone: ⊥ Moved from https://github.com/haskell/cabal/milestone/5 re: config-file Concerning the cabal configuration file and the `--config-file` option type: enhancement
Milestone

Comments

@melrief
Copy link

melrief commented Jun 13, 2014

TestFlags are not saved in ~/.cabal/config and must be passed by command line.

Related to this StackOverflow question.

@23Skidoo
Copy link
Member

/cc @ttuegel

@23Skidoo 23Skidoo added the test label Aug 7, 2014
@ttuegel ttuegel self-assigned this Aug 27, 2014
@ttuegel ttuegel added this to the cabal-install-1.24 milestone Apr 24, 2015
@23Skidoo 23Skidoo modified the milestones: cabal-install 1.24, cabal-install 1.26 Feb 21, 2016
@ezyang ezyang modified the milestones: cabal-install 2.0, _|_ Aug 16, 2016
@ulysses4ever ulysses4ever added cabal-install: cmd/test re: config-file Concerning the cabal configuration file and the `--config-file` option and removed cabal-install: other cabal-install: cmd/test re: config-file Concerning the cabal configuration file and the `--config-file` option labels Sep 7, 2022
@Abastro
Copy link
Collaborator

Abastro commented Feb 8, 2023

Hello, I would like this feature implemented. What are the blockers for this feature?

@ulysses4ever
Copy link
Collaborator

@Abastro no particular blocker afaik, we just need a volunteer to work on it: there's currently none, it seems.

@Abastro
Copy link
Collaborator

Abastro commented Feb 8, 2023

@ulysses4ever Oh, is this one hard to implement?
It seems like the linked Cabal/Distribution/Simple/Setup.hs no longer exists, so I guess it would be done a bit differently?

@Mikolaj
Copy link
Member

Mikolaj commented Feb 8, 2023

Probably not that hard and, in any case, worth a PR, with a test, with some experiments, and then we'd see how to goes.

I'd guess it's this file?

~/r/cabal$ find . -name "*Setup.hs"
./cabal-dev-scripts/Setup.hs
./Cabal/src/Distribution/Simple/Setup.hs
...

@Mikolaj
Copy link
Member

Mikolaj commented Feb 8, 2023

BTW, things like --show-details=always from the original request now go into cabal.project and work fine. But perhaps not everything does; worth checking.

@Abastro
Copy link
Collaborator

Abastro commented Feb 9, 2023

Oh. The behavior seems not documented, so I assumed it does not exist.. Thanks a lot!

@ulysses4ever
Copy link
Collaborator

ulysses4ever commented Feb 9, 2023

I'm guessing that if it works from a project file, than it should work from the config file too? (Although, this is not at simple in general #6319)

@Abastro
Copy link
Collaborator

Abastro commented Feb 9, 2023

Can I ask where I could find list of options supported by cabal.project.local in the documentation?

@ulysses4ever
Copy link
Collaborator

@Abastro

Can I ask where I could find list of options supported by cabal.project.local in the documentation?

In the manual: 7. cabal.project Reference.

By the way, I tried to put it in ~/.cabal/config instead of cabal.project.local -- and it didn't work. This is surprising to me, as many options work from either of the files.

@ulysses4ever ulysses4ever added re: config-file Concerning the cabal configuration file and the `--config-file` option cabal-install: cmd/test labels Feb 12, 2023
@Abastro
Copy link
Collaborator

Abastro commented Feb 12, 2023

I do not see test-show-details in the list, while it is a valid option in cabal.project.local. Maybe documentation should be updated to reflect the options?

@ulysses4ever
Copy link
Collaborator

Correct: the manual is in no way complete. (What's even funnier is that --test-show-details is not documented at all! #8619) The rule is thumb is that whatever goes on command line can go to cabal.project(.local) in some form.

@andreabedini andreabedini added the old-milestone: ⊥ Moved from https://github.com/haskell/cabal/milestone/5 label Oct 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cabal-install: cmd/test old-milestone: ⊥ Moved from https://github.com/haskell/cabal/milestone/5 re: config-file Concerning the cabal configuration file and the `--config-file` option type: enhancement
Projects
None yet
Development

No branches or pull requests

8 participants