-
Notifications
You must be signed in to change notification settings - Fork 710
cabal-tests --with-cabal
should have sensible default
#8401
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
Comments
Then we'll also need a way to skip cabal-install tests for the lib-only part of the testsuite |
This may be convenient indeed but I have two reservations. A mild one: this looks like a case where you may want to be explicit about the argument, because it’s the single most important one for the whole test suite. Next, technical: is there a precedent in the whole project where some tool calls some other tool to infer a default value of its parameter. This looks like an extremely fragile scheme. What if there’s no cabal built yet? What if it’s stale? That’s why I’m slightly leaning towards explicit argument passing in this case: it raises the chance that the user actually realizes that the value makes any sense. The current behavior is not satisfying either. I think I’d prefer it to fail if no --with-cabal provided (for lib tests that are okay with missing cabal there may be another argument, e.g. --only-lib or something). But I’m not actively against this proposal either. |
As I suggested in another thread, I find I haven't thought through the @ulysses4ever : If
|
Agreed. If we go for it, we definitely should not try to configure or build the in-tree cabal, but instead fail hard if it's not present (all this assuming the user did not specify the cabal to use). |
Just fell into this trap again today. Maybe the cabal/cabal-testsuite/README.md Lines 8 to 11 in bcfc79c
Also,
|
- Add caveat to `--help` text. - Put `--with-cabal` into very first example in README.
Because If one wants to skip the |
- Add caveat to `--help` text. - Put `--with-cabal` into very first example in README.
- Add caveat to `--help` text. - Put `--with-cabal` into very first example in README.
cabal-testsuite #8401: communicate better the need for `--with-cabal`
As suggested in #8392 (comment), the result of
cabal list-bin cabal-install
should be the default for--with-cabal
(rather than skipping all tests that require cabal-install).In general, a
--with-PROG
should only overwrite an existing default forPROG
, at least that is the custom (followed byconfigure
andcabal
).The text was updated successfully, but these errors were encountered: