-
Notifications
You must be signed in to change notification settings - Fork 696
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
cabal v2-install ignores flag --run-tests #7267
Comments
No triage/comment on this issue? |
@andreasabel: sincere apologies; cabal has a multi-year backlog of issues and PRs that require looking into, so I'm afraid it's mostly self-service for now. Have you discovered anything about this option? Frankly, I forgot it even exists. Perhaps it wasn't ported from v1-install to v2-install? Does it work with v2-build? Actually, why are you using |
No need to apologize! I suppose Interestingly, in combination with
How about removing |
I guess so. Perhaps the removal of the option was planned together with removal of v1- commands, which is blocked on finding a suitable replacement for v1-install (see https://github.com/haskell/cabal/projects/10).
Oh, so the idea would be to build a package directly from Hackage and run its tests? I'd love to know if it's possible (even by manually executing the test binaries built with
That looks like a bug that needs fixing. Option
Fully agreed. OTOH, the option will probably just vanish when we remove v1-commands. |
@Mikolaj wrote:
I hope that removal will not happen any time soon. At least not until replacements for v1 workflows have been added. E.g., v2 does not support (feasibly) Is there actually a list/wiki of v1 workflows that still need support by v2? Atm, I reported such on the issue tracker here, but I am worried these get lost in the help of 1400 open issues. I think to make a community-serving decision about the removal of v1, the community should have solutions for their existing setups. To have a structured collection of migration problems and their solutions would help you get hard data about the state of the community. |
Noted. I've added the issue to https://github.com/haskell/cabal/projects/12. Please do improve the project. The more coherent it is, the more likely it won't be ignored when postponing the v1- extinction. |
@Mikolaj as mentioned in #1176 (comment) I think the proper (and more general) issue that needs solving to match v1 is #3579. I added it to the project |
Oh, great, that's a welcome clue and wider context. Thank you. |
To clarify: However, if called with an external package,
I suppose the error given for
|
I think last comment suggestion is the way to resolve this so PRS welcomed |
(I searched whether this issue is already reported, but couldn't find it. If it exists, please tag it with
cabal-install: cmd/install
.)It seems like
simply ignores the option
--run-tests
. Neither a test-suite is run nor a warning is emitted that this option isn't valid.Seems like this hasn't been working for 5 years at least, judging from the discussion at https://stackoverflow.com/questions/33040790/how-do-i-run-the-tests-that-are-part-of-an-installed-installing-cabal-package#comment53903271_33041029.
I would find
cabal install --run-tests
useful because it would run the tests with thesdist
-generated package, ensuring that all files needed by the testsuite are packaged up correctly. (One easily forgets adding test files toextra-source-files
in the .cabal file.)I think while this is not working as expected,
cabal
should issue a warning that the flag is ignored.I am using a recent version of the development branch:
The text was updated successfully, but these errors were encountered: